/l3/users/eb/2009/linux6/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#ls -l /etc/ssh/
итого 152 -rw-r--r-- 1 root root 125749 Май 4 23:39 moduli -rw-r--r-- 1 root root 1595 Май 4 23:39 ssh_config -rw-r--r-- 1 root root 1874 Май 24 13:23 sshd_config -rw------- 1 root root 668 Май 24 13:23 ssh_host_dsa_key -rw-r--r-- 1 root root 599 Май 24 13:23 ssh_host_dsa_key.pub -rw------- 1 root root 1675 Май 24 13:23 ssh_host_rsa_key -rw-r--r-- 1 root root 391 Май 24 13:23 ssh_host_rsa_key.pub |
#di
dialog diffindex-rred dijkstra dirsplit diff dig dir disable_console_redir diff3 digitemp_DS2490 dircolors disown diffimg digitemp_DS9097 dirname displayfont diffindex-download digitemp_DS9097U dirs |
#dig expres-bank.ua
; <<>> DiG 9.6.0-P1 <<>> expres-bank.ua ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32987 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;expres-bank.ua. IN A ;; ANSWER SECTION: expres-bank.ua. 3043 IN A 62.149.18.190 ;; AUTHORITY SECTION: expres-bank.ua. 3043 IN NS ns.secondary.net.ua. expres-bank.ua. 3043 IN NS ns.finport.net. ;; ADDITIONAL SECTION: ns.finport.net. 91125 IN A 62.149.0.72 ns.secondary.net.ua. 35806 IN A 195.149.112.1 ;; Query time: 7 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Wed Jun 3 10:00:08 2009 ;; MSG SIZE rcvd: 139 |
#ssh-keygen -l -f /etc/ss
ssh/ ssl/ |
#ssh-keygen -l -f /etc/ssh/ssh
ssh_config ssh_host_dsa_key ssh_host_rsa_key sshd_config ssh_host_dsa_key.pub ssh_host_rsa_key.pub |
#ssh-keygen -l -f /etc/ssh/ssh_
ssh_config ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub |
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key
ssh_host_dsa_key ssh_host_dsa_key.pub |
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key
1024 fa:0a:dd:c2:37:53:40:c3:1a:64:cf:fb:7a:78:18:ac /etc/ssh/ssh_host_dsa_key.pub (DSA) |
#ping mail.ru
PING mail.ru (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.298 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.222 ms 64 bytes from 10.0.35.1: icmp_seq=3 ttl=63 time=0.221 ms 64 bytes from 10.0.35.1: icmp_seq=4 ttl=63 time=0.230 ms 64 bytes from 10.0.35.1: icmp_seq=5 ttl=63 time=0.222 ms 64 bytes from 10.0.35.1: icmp_seq=6 ttl=63 time=0.223 ms ^C --- mail.ru ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 4999ms rtt min/avg/max/mdev = 0.221/0.236/0.298/0.027 ms |
#ping ya.ru
PING ya.ru (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.297 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.221 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.221/0.259/0.297/0.038 ms |
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key
1024 fa:0a:dd:c2:37:53:40:c3:1a:64:cf:fb:7a:78:18:ac /etc/ssh/ssh_host_dsa_key.pub (DSA) |
#ÑÑcat ~./ssh/known_hosts
cat: ~./ssh/known_hosts: ÐÐµÑ Ñакого Ñайла или каÑалога |
#cat ~/.ssh/known_hosts
|1|uij9Wkk//Ph/S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W++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|0sp0eA079uJEV6Qd+fy8/1tdwws=|dOJA78Jj9bv4L+rProSnVOxiVvY= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|dbIKhxMeT2pwxJfGgFBoJzoMG2E=|R3K79Hr7OGr5HdMTXvm0I63W+WQ= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAHEAzhDiIBZW+W7fAlcc/EocYkS6FBw7+YwzZxqjyFwu7+QoRlk5EC8oiWdLu1vW0BjmPDxD/8k2xYK+vMaxne4zBpMLT09RTj9eUSll3W1JZO6IHZqv8lZQ8yTtAVzyDVpjB/XtOyI9ejIrbVQIJ+j7Uw== |
#ssh-keygen -R 192.168.15.7
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#мvi ~/.ssh/config
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "~/.ssh/config" [Новый] 2L, 27C записано |
#passwd
Введите новый пароль UNIX: Повторите ввод нового пароля UNIX: passwd: пароль успешно обновлён |
#ssh root@192.168.15.7
The authenticity of host '192.168.15.7 (192.168.15.7)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Are you sure you want to continue connecting (yes/no)? no Host key verification failed. |
#ssh root@192.168.15.7
The authenticity of host '192.168.15.7 (192.168.15.7)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Are you sure you want to continue connecting (yes/no)? no Host key verification failed. |
#ssh-key
ssh-keygen ssh-keyscan |
#ssh-keyscan 192.168.15.15
# 192.168.15.15 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.15 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== |
#ssh-keyscan 192.168.15.{1..15}
# 192.168.15.6 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.6 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.15 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.15 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.1 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2gAvjn0otWcrbu1QzGfqvMXCxewmO31+5l5XtpB3aE5IbryA7hB9LryLpKRZ21/N/tOqB9WOyqWN2pOTuk1uAjiwPhaQUeEAzTV7cc6YVzUEWUPd+eCRXxbkmH3IqfEJJ0RSlFhNkzGPbyVI+ezE9yDiswuqScuQqNzCXfPPZLFm5dtjkdlNPzFY87LEu4kZ57WpDDkP9Qtg8ewMRiVZh+RKA2UyQR8yU/+MJWRexf7uI+iZPLtrU9cPCXDpHFvPomuMadyNJ8ZZtWIaujPPRl3KHPenvaRIALatGXnemBA39IBin9nUHud2xQuP1UjdOiXgdasfKys1tepE97x3Jw== # 192.168.15.2 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.3 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzk6/s7Szz7FgoQ8bLWn5XYLTXXQTiVnPRUYNcVkOoir0Fc3jKIXeYuUOeFXVNCLx0UZbG9QsXh3CEE5QTkmEyw9Vu4a5r+7QhfQXtynRlnAyZIg+YEd7GJaqZB88Ycqiy32VcLLGkUIieRBEMXZCw9lAbqGGLLMRsOpmg+Eq2LOspDA8UdblSlDmcrTuliX1Nk2qeOhPjDBcCMOyB+tKiIYc93sjC2dtdzkkBOCCz/nni7hqxJnKXLYR9UyL47uw72tSlp4UqtRTWCcNeF9SxziV72T84sOSeBnXLvDHcVYOpwcZMc/Fd5+3RbQtSu5gFzMCeuU4aeN04tIWtlyCvw== ... # 192.168.15.10 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.10 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.11 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.11 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.12 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.12 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.13 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.14 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== |
#cat > /tmp/ssh
for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> ~/.ssh/authorized_keys' ; end ssh-keyscan -H 192.168.15.{1..16} >> ~/.ssh/known_hosts # 192.168.15.2 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.1 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.4 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.5 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.6 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.7 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.8 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.9 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.10 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.11 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.12 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.15 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.16 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
root@192.168.15.7's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| ... | o . . o+| | =| | o | | E | +-----------------+ Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.16' (RSA) to the list of known hosts. root@192.168.15.16's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' |
#passwd
Введите новый пароль UNIX: Повторите ввод нового пароля UNIX: Sorry, passwords do not match passwd: Ошибка при операциях с маркером проверки подлинности passwd: пароль не изменён |
#for i in {1..16}; do ssh 192.168.15.$i date; done
| | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ ... | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.16's password: |
#for i in {1..16}; do ssh 192.168.15.$i
> |
#cat > /tmp/sshbinall
cat ~/bin/all #!/bin/sh for i in {1..16} do ssh 192.168.15.$i "$@" | sed "s/^/$i: /" done |
#cat >> /tmp/sshbinall
cat ~/bin/all #!/bin/sh for i in 192.168.15.{1..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.1 'cat >> ~/.ssh/authorized_keys'
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:5 RSA host key for 192.168.15.1 has changed and you have requested strict checking. Host key verification failed. |
#ssh 192.168.15.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:5 RSA host key for 192.168.15.1 has changed and you have requested strict checking. Host key verification failed. |
#ssh-key
ssh-keygen ssh-keyscan |
#ssh-keygen -R 192.168.15.1
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.1 'cat >> ~/.ssh/authorized_keys'
The authenticity of host '192.168.15.1 (192.168.15.1)' can't be established. RSA key fingerprint is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5. +--[ RSA 2048]----+ | .ooo =.o | | .+ o = = . | | o o * o o | | + + + + | | . . = S E | | . . | | | | | | | +-----------------+ Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.1' (RSA) to the list of known hosts. root@192.168.15.1's password: |
#exit
exit Connection to 192.168.15.1 closed. |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.7 'cat >> ~/.ssh/authorized_keys'
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.7's password: |
#ssh root@192.168.15.7
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux7 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:03:20 2009 from linux5.unix.nt l3-agent is already running: pid=3646; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.7 closed. |
#ssh @192.168.15.7 date
usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w local_tun[:remote_tun]] [user@]hostname [command] |
#ssh root@192.168.15.8 date
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
bash: -c: line 0: `cat >>' Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| ... | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.16's password: |
#ssh root@192.168.15.10 date
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.10's password: Срд Июн 3 11:08:45 EEST 2009 |
#ssh-keyscan -H 192.168.15.{1..16} >> ~/.ssh/known_hosts
# 192.168.15.6 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.1 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.2 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.3 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.4 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.5 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.7 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.8 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.9 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.11 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.12 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.16 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.10 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
+-----------------+ root@192.168.15.6's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| ... | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.16's password: |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.5 'cat >> ~/.ssh/authorized_keys'
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.5's password: |
#ssh root@192.168.15.5 date
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Срд Июн 3 11:16:05 EEST 2009 |
#ssh root@192.168.15.4 date
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.4's password: Wed Jun 3 11:18:25 EEST 2009 |
#ssh-keygen -p -s ~/.ssh/
authorized_keys config id_dsa.pub known_hosts.old autorized_keys id_dsa known_hosts |
#ssh-keygen -p -s ~/.ssh/id_dsa
ssh-keygen: illegal option -- s usage: ssh-keygen [options] Options: -a trials Number of trials for screening DH-GEX moduli. -B Show bubblebabble digest of key file. -b bits Number of bits in the key to create. -C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to RFC 4716 key file. -F hostname Find hostname in known hosts file. ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. |
#w
11:59:46 up 2:36, 6 users, load average: 0,72, 0,58, 0,38 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 10:49 1:10m 0.00s 0.00s script -f user tty7 :0 09:24 2:35m 1:27 0.25s x-session- user pts/0 :0.0 09:34 0.00s 0.29s 0.29s script -f user pts/2 :0.0 09:42 44:52 0.51s 0.27s script -f user pts/6 :0.0 09:48 14.00s 0.34s 0.31s script -f root pts/10 linux7.unix.nt 11:58 1.00s 0.00s 0.00s script -f |
#ssh-keygen -p -f ~/.ssh/id_dsa
Key has comment '/root/.ssh/id_dsa' Enter new passphrase (empty for no passphrase): Enter same passphrase again: passphrase too short: have 4 bytes, need > 4 Saving the key failed: /root/.ssh/id_dsa. |
#ssh 192.168.15.1
Host key fingerprint is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5 +--[ RSA 2048]----+ | .ooo =.o | | .+ o = = . | | o o * o o | | + + + + | | . . = S E | | . . | | | | | | | +-----------------+ l3-agent is already running: pid=4276; pidfile=/root/.lilalo/l3-agent.pid |
#eval `ssh-agent`
Agent pid 31099 |
#ssh-add
Enter passphrase for /root/.ssh/id_dsa: Bad passphrase, try again for /root/.ssh/id_dsa: Bad passphrase, try again for /root/.ssh/id_dsa: Bad passphrase, try again for /root/.ssh/id_dsa: |
#ыssh-add -l
The agent has no identities. |
#ssh-add
Enter passphrase for /root/.ssh/id_dsa: Bad passphrase, try again for /root/.ssh/id_dsa: |
#eval `ssh-agent -k`
Agent pid 31099 killed |
#scho $SSH_AUTH_SOCK
bash: scho: команда не найдена |
#мvi /root/.ssh/config
При открытии файла: "/root/.ssh/config" дата: Wed Jun 3 10:50:59 2009 (1) Возможно, редактирование файла выполняется в другой программе. Если это так, то будьте внимательны при внесении изменений, чтобы у вас не появилось два разных варианта одного и того же файла. Завершите работу или продолжайте с осторожностью. (2) Предыдущий сеанс редактирования этого файла завершён аварийно. В этом случае, используйте команду ":recover" или "vim -r /root/.ssh/config" для восстановления изменений (см. ":help восстановление"). Если вы уже выполняли эту операцию, удалите своп-файл "/root/.ssh/.config.swp" чтобы избежать появления этого сообщения в будущем. Своп-файл "~/.ssh/.config.swp" уже существует! |
#ssh 192.168.15.14
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:32:05 2009 from linux2.unix.nt l3-agent is already running: pid=30256; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.15.14 closed. |
#ssh 192.168.15.14
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.14's password: Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:51:51 2009 from linux6.unix.nt l3-agent is already running: pid=30256; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.14 closed. |
#ssh 192.168.15.14
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.14's password: Permission denied, please try again. root@192.168.15.14's password: Permission denied, please try again. root@192.168.15.14's password: Permission denied (publickey,password). |
#~
[root@linux0:~]# ssh-agent > ~/.ssh-agent [root@linux0:~]# eval `cat ~/.ssh-agent` Agent pid 13439 [root@linux0:~]# [ -e ~/.ssh-agent ] && eval `cat ~/.ssh-agent` || ssh-agent > ~/.ssh-ag ent |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
user tty7 2009-06-03 09:29 (:0) user pts/0 2009-06-03 09:30 (:0.0) user pts/3 2009-06-03 09:31 (:0.0) root pts/6 2009-06-03 11:40 (linux6.unix.nt) root pts/8 2009-06-03 11:40 (linux2.unix.nt) |
#w
11:57:21 up 2:28, 5 users, load average: 0,67, 0,47, 0,30 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 09:29 2:28m 20.28s 0.16s x-session-manager user pts/0 :0.0 09:30 4.00s 0.32s 0.29s script -f -c bash -q /home/user/.lilalo//83703 user pts/3 :0.0 09:31 4:44 0.59s 0.28s script -f -c bash -q /home/user/.lilalo//17707 root pts/6 linux6.unix.nt 11:40 0.00s 0.00s 0.00s script -f -c bash -q /root/.lilalo//4311568812 root pts/8 linux2.unix.nt 11:40 11:43 0.00s 0.00s script -f -c bash -q /root/.lilalo//1649244532 |
#cat > /tmp/ssh-agent
cat > /tmp/ssh-agent [root@linux0:~]# ssh-agent > ~/.ssh-agent [root@linux0:~]# eval `cat ~/.ssh-agent` Agent pid 13439 [root@linux0:~]# [ -e ~/.ssh-agent ] && eval `cat ~/.ssh-agent` || ssh-agent > ~/.ssh-ag ent 1 |
#cat > /tmp/ssh-agent
1 eval `cat ~/.ssh-agent` grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || ssh-agent > ~/.ssh-agen t else ssh-agent > ~/.ssh-agent fi eval `< ~/.ssh-agent` l3-agent . ~/.bashrc @2 |
#cat /root/.ssh/authorized_keys
ssh-dss AAAAB3NzaC1kc3MAAACBAPM7secFkeM6KVrBL00ogESqHhZsItP2Pe2+hNt1FSvIZlNgFOvQUnAoC0TNVv8nASnoii/j4Ts2QNVe68Ox66WcXkV1ybHo9k75Bvm66mn0EZmhd7CfiQb2i+frZlM0TxDCPVBE8245M+5nU0neihE7OkGy6Y+fUT9/5PCREzOfAAAAFQDlSO+CParevDU1EMnFnyCWgHrgLwAAAIEA6xZUtORCvJDQAdLmfLkW4bfge5gzYuLkf3eWy8hbe5yWlHATC/YM1QefDzHZOJEvBjN6UXJ8AdeTa/9Qh6xysWsE66HJQhnfRLqG1gynsIqeaF0i8c1P48zwsNfCjWv8jgHdg/SXeAFemawY8q7eITZvdmun2Y3n ssh-dss AAAAB3NzaC1kc3MAAACBAKL1xGnFf0D96WRFczA7T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INGJEKMmhfsD8QH ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA+7DP0HvIVVKBpb0zuYIU79G9vyerpao8CWUH4ZXayTuiiOuPnFka+SB193FwA6uKTuVuAvEnU1VkbgSaqRvErn1cTQ6ghlUiAwNiFKER7B+zuII4LMZWHEfIKqL4FbVYNyPZPuwkCuGMa080b8+yJdWLDoRNIEgPTwCVdhzJSR9/d3InH+F252TNp1JNQT/IjGMVr1TDqYBzOoE8t8JcIZ4QJUT+rMcxd2qnxSB/x/0H0wx2Mk/OOn2w8sl8vp8uPt8X9FV5PG/Sldb/rBUQ7+HzgRFTEFUsigilHmIsJQLxQYDpFeOeggi8w70ZFGQbMvDQKRHpx8rPE62h4Kmglw== root@linux11 |
#w
12:00:18 up 2:36, 6 users, load average: 0,71, 0,59, 0,39 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 10:49 1:11m 0.00s 0.00s script -f user tty7 :0 09:24 2:36m 1:27 0.25s x-session- user pts/0 :0.0 09:34 0.00s 0.29s 0.29s script -f user pts/2 :0.0 09:42 45:24 0.51s 0.27s script -f user pts/6 :0.0 09:48 46.00s 0.34s 0.31s script -f root pts/10 linux7.unix.nt 11:58 21.00s 0.00s 0.00s script -f |
#Ñw
12:07:38 up 2:43, 5 users, load average: 0,12, 0,36, 0,37 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 10:49 1:18m 0.00s 0.00s script -f user tty7 :0 09:24 2:43m 1:36 0.28s x-session- user pts/0 :0.0 09:34 0.00s 0.29s 0.29s script -f user pts/2 :0.0 09:42 6:40 0.51s 0.27s script -f user pts/6 :0.0 09:48 9.00s 0.35s 0.31s script -f |
#cat > /tmp/ssh-agent
@2 load_agent() { ssh-agent > ~/.ssh-agent eval `< ~/.ssh-agent` ssh-add } if [ -e ~/.ssh-agent ] then eval `cat ~/.ssh-agent` grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent else load_agent fi l3-agent . ~/.bashrc @3 12:02 kakojto MEGA skript dla SSH v zavisimosti |
#cat /root/.ssh/config
Host * # VisualHostKey yes (vizualizaciya key) # ForwardAgent yes (dlya forvardinga agenta) |
#digitemp_DS9097 -a -q -o "%.1C"
25.4 26.8 |
#ssh -X root@192.168.15.5 xclock
Enter passphrase for key '/root/.ssh/id_dsa': Enter passphrase for key '/root/.ssh/id_dsa': Enter passphrase for key '/root/.ssh/id_dsa': root@192.168.15.5's password: Error: Can't open display: |
#xclock
Error: Can't open display: localhost:10.0 |
#bc
bc 1.06.94 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. (interrupt) use quit to exit. |
#xclock
Error: Can't open display: |
#ssh -X root@192.168.15.8 xclock
root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: Permission denied (publickey,password). |
#ssh -X root@192.168.15.1 xclock
Enter passphrase for key '/root/.ssh/id_dsa': root@192.168.15.1's password: Error: Can't open display: |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.8 'cat >> ~/.ssh/authorized_keys'
root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.8 'cat >> ~/.ssh/authorized_keys'
Enter passphrase for key '/root/.ssh/id_dsa': root@192.168.15.8's password: |
#exit
exit Connection to 192.168.15.1 closed. |
#ssh root@192.168.15.4 date
|
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.8 'cat >> ~/.ssh/authorized_keys'
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: |
#ssh root@192.168.15.4 date
|
#ssh root@192.168.15.5 date
for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> cat ~/.ssh/id_dsa.pub | ssh 192.168.15.5 'cat >> ~/.ssh/authorized_keys' ~/.ssh/authorized_keys' ; done |
#ssh root@192.168.15.4 date
ssh -X root@192.168.15.8 xclock Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ /usr/bin/X11/xauth: creating new authority file /root/.Xauthority Error: Can't open display: localhost:10.0 |
#w
12:29:41 up 3:06, 5 users, load average: 0,32, 0,33, 0,26 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 10:49 1:40m 0.00s 0.00s script -f -c bash -q /root/.lilalo//9143555516 user tty7 :0 09:24 3:05m 1:49 0.31s x-session-manager user pts/0 :0.0 09:34 22:00 0.29s 0.29s script -f -c bash -q /home/user/.lilalo//92021 user pts/2 :0.0 09:42 28:43 0.51s 0.27s script -f -c bash -q /home/user/.lilalo//28148 user pts/6 :0.0 09:48 0.00s 0.35s 0.31s script -f -c bash -q /home/user/.lilalo//31359 |
#iptables
iptables v1.4.3.2: no command specified Try `iptables -h' or 'iptables --help' for more information. |
authorized_keys autorized_keys
ssh-dss AAAAB3NzaC1kc3MAAACBAPM7secFkeM6KVrBL00ogESqHhZsItP2Pe2+hNt1FSvIZlNgFOvQUnAoC0TNVv8nASnoii/j4Ts2QNVe68Ox66WcXkV1ybHo9k75Bvm66mn0EZmhd7CfiQb2i+frZlM0TxDCPVBE8245M+5nU0neihE7OkGy6Y+fUT9/5PCREzOfAAAAFQDlSO+CParevDU1EMnFnyCWgHrgLwAAAIEA6xZUtORCvJDQAdLmfLkW4bfge5gzYuLkf3eWy8hbe5yWlHATC/YM1QefDzHZOJEvBjN6UXJ8AdeTa/9Qh6xysWsE66HJQhnf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QFwWR+g7Ov8JLJhuaOFG+VjdI38XmN6qjyor4JgHU9OIG7ZOcQDY9Kq2ekGeGAag+YUMcJ3Q1QEyz8MYdRAwU5AP05tbouCxb5QLH0gINGJEKMmhfsD8QH ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA+7DP0HvIVVKBpb0zuYIU79G9vyerpao8CWUH4ZXayTuiiOuPnFka+SB193FwA6uKTuVuAvEnU1VkbgSaqRvErn1cTQ6ghlUiAwNiFKER7B+zuII4LMZWHEfIKqL4FbVYNyPZPuwkCuGMa080b8+yJdWLDoRNIEgPTwCVdhzJSR9/d3InH+F252TNp1JNQT/IjGMVr1TDqYBzOoE8t8JcIZ4QJUT+rMcxd2qnxSB/x/0H0wx2Mk/OOn2w8sl8vp8uPt8X9FV5PG/Sldb/rBUQ7+HzgRFTEFUsigilHmIsJQLxQYDpFeOeggi8w70ZFGQbMvDQKRHpx8rPE62h4Kmglw== root@linux11
Host * # VisualHostKey yes (vizualizaciya key) # ForwardAgent yes (dlya forvardinga agenta)
for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> ~/.ssh/authorized_keys' ; end ssh-keyscan -H 192.168.15.{1..16} >> ~/.ssh/known_hosts # 192.168.15.2 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.1 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.4 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.5 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.6 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.7 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.8 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.9 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.10 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.11 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.12 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.15 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.16 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1
@2 load_agent() { ssh-agent > ~/.ssh-agent eval `< ~/.ssh-agent` ssh-add } if [ -e ~/.ssh-agent ] then eval `cat ~/.ssh-agent` grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent else load_agent fi l3-agent . ~/.bashrc @3 12:02 kakojto MEGA skript dla SSH v zavisimosti
cat ~/bin/all #!/bin/sh for i in 192.168.15.{1..16} do ssh $i "$@" | sed "s/^/$i: /" done
|1|uij9Wkk//Ph/S+FxcEwWCq0Hchs=|ZEyM+lXVTCzRSKosbHU4STwR1Y4= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2MKci5Bhj9AzgVtUDRapesSxLzafVqE/0Zb9Yd3hVnYSA8SAZ5V635nHjOZyGr/3twLQDX0Dr3BAemmBMmrbQi/MbRxSCUXumdeMQ9yIbfT3YxMJskqdpQEkLiCrqm2/0wEMUh0qqTzbAGdqBM+z3nWPeZE5EGdIVuVf++iV4GwvhWVlx5NDONG6tGfmpF9P4KV99/J1jhjf5s+ssMYJAbEgPlbi45ZLfV9uzIuk8RhN3yv6+kcg9K3dNLeaq+QB8pNAxqVNitOh13G2jyxD7ea3IDTiH1q8WfsSSJIwtN3AQsP |1|vJmAuAOBzwTHmHEN7BHk0g8EtRo=|mg5i2wa+snI55Wp9RYPrPd/CknM= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283a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OCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|0sp0eA079uJEV6Qd+fy8/1tdwws=|dOJA78Jj9bv4L+rProSnVOxiVvY= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|dbIKhxMeT2pwxJfGgFBoJzoMG2E=|R3K79Hr7OGr5HdMTXvm0I63W+WQ= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAHEAzhDiIBZW+W7fAlcc/EocYkS6FBw7+YwzZxqjyFwu7+QoRlk5EC8oiWdLu1vW0BjmPDxD/8k2xYK+vMaxne4zBpMLT09RTj9eUSll3W1JZO6IHZqv8lZQ8yTtAVzyDVpjB/XtOyI9ejIrbVQIJ+j7Uw==
Время первой команды журнала | 09:58:47 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:30:27 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 28.71 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008