/l3/users/29-05-2007/nt-lnet/linux1.net.nt/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 |
|
#s
bash: s: command not found |
#s
bash: s: command not found |
#s
bash: s: command not found |
#s
bash: s: command not found |
#pkill -9 screen
|
#screen
|
#ls -l .ssh/
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ls -l .ssh/ итого 4 -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# итого 4 -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts |
#ls -la .ssh/
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ls -l .ssh/ итого 4 -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# ls -la .ssh/ итого 12 drwx------ 2 root root 4096 2007-05-24 20:41 . drwxr-xr-x 6 root root 4096 2007-05-31 13:04 .. -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# итого 12 drwx------ 2 root root 4096 2007-05-24 20:41 . drwxr-xr-x 6 root root 4096 2007-05-31 13:04 .. -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts |
#a
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ls -l .ssh/ итого 4 -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# ls -la .ssh/ итого 12 drwx------ 2 root root 4096 2007-05-24 20:41 . ... [root@linux1:~]# a bash: a: command not found [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh- bash: a: command not found |
#screen -x
|
#ssh-key
-rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# ls -la .ssh/ итого 12 drwx------ 2 root root 4096 2007-05-24 20:41 . drwxr-xr-x 6 root root 4096 2007-05-31 13:04 .. -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# a bash: a: command not found [root@linux1:~]# [root@linux1:~]# ... [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-key ssh-keygen ssh-keyscan [root@linux1:~]# ssh-key ssh-keygen ssh-keyscan [root@linux1:~]# ssh-keygen --help Generating public/private rsa key pair. [root@linux1:~]# ssh-keygen - ssh-keygen ssh-keyscan |
#ssh-key
ssh-keygen ssh-keyscan |
#ssh-keygen --help
Generating public/private rsa key pair. |
#ssh-keygen -t dsa
-c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. ... -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. [root@linux1:~]# |
#ssh-keygen -h
ssh-keygen: illegal option -- h 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 IETF SECSH 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. |
#ssh-keygen
-R hostname Remove host from known_hosts file. -p trials Number of trials for screening DH-GEX moduli. -r hostname Print DNS resource record. -B -S start Start point (hex) for generating DH-GEX moduli. -T file Verbose.andidates for DH-GEX moduli. -W gen Read private key file and print public key.li. [root@linux1:~]# [root@linux1:~]# ssh-keygen Generating public/private rsa key pair. ... [root@linux1:~]# Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: c2:cc:9d:91:6c:fd:1e:19:9e:4d:16:f1:1c:7e:d1:60 root@linux1 ------------------------------------------------------------------------------------------------------------------------------- |
#md5sum
-l -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Change passphrase of private key file. Quiet. -q phrase Provide old passphrase. -R hostname Remove host from known_hosts file. -p trials Number of trials for screening DH-GEX moduli. -r hostname Print DNS resource record. -B -S start Start point (hex) for generating DH-GEX moduli. ... Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: c2:cc:9d:91:6c:fd:1e:19:9e:4d:16:f1:1c:7e:d1:60 root@linux1 [root@linux1:~]# md5sum md5sum md5sum.textutils [root@linux1:~]# md5sum .ssh/ id_rsa id_rsa.pub known_hosts [root@linux1:~]# md5sum .ssh/ md5sum md5sum.textutils ------------------------------------------------------------------------------------------------------------------------------- |
#md5sum .ssh/
id_rsa id_rsa.pub known_hosts |
#md5sum .ssh/id_rsa*
-r hostname Print DNS resource record. -B -S start Start point (hex) for generating DH-GEX moduli. -T file Verbose.andidates for DH-GEX moduli. -W gen Read private key file and print public key.li. [root@linux1:~]# [root@linux1:~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): ... md5sum md5sum.textutils [root@linux1:~]# md5sum .ssh/ id_rsa id_rsa.pub known_hosts [root@linux1:~]# md5sum .ssh/id_rsa* 834f8fe694de6faf1538d9820d55567e .ssh/id_rsa 9508ecc873284436c16798944ff8d3b9 .ssh/id_rsa.pub [root@linux1:~]# 834f8fe694de6faf1538d9820d55567e .ssh/id_rsa 9508ecc873284436c16798944ff8d3b9 .ssh/id_rsa.pub ------------------------------------------------------------------------------------------------------------------------------- |
#man ssh-keygen
|
#ls -l .ssh/
-C comment Provides a new comment. -c Requests changing the comment in the private and public key files. This operation is only supported for RSA1 keys. The program will prompt for the file containing the private keys, for the passphrase if the key has one, and for the new comment. -D reader Download the RSA public key stored in the smartcard in reader. -e This option will read a private or public OpenSSH key file and print the key in a ‘SECSH Public Key File [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ls -l .ssh/ итого 12 -rw------- 1 root root 1675 2007-05-31 13:43 id_rsa -rw-r--r-- 1 root root 393 2007-05-31 13:43 id_rsa.pub -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts [root@linux1:~]# ssh-keygen -t итого 12 -rw------- 1 root root 1675 2007-05-31 13:43 id_rsa -rw-r--r-- 1 root root 393 2007-05-31 13:43 id_rsa.pub -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts ------------------------------------------------------------------------------------------------------------------------------- |
#ssh-keygen -t dsa -b 1024
Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: f3:dd:35:a5:c7:77:5f:1b:1a:4d:95:6f:b1:29:02:4f root@linux1 [root@linux1:~]# ls -l .ssh/ итого 20 -rw------- 1 root root 668 2007-05-31 13:45 id_dsa ... [root@linux1:~]# Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: f3:dd:35:a5:c7:77:5f:1b:1a:4d:95:6f:b1:29:02:4f root@linux1 ------------------------------------------------------------------------------------------------------------------------------- |
#ls -l .ssh/
итого 20 -rw------- 1 root root 668 2007-05-31 13:45 id_dsa -rw-r--r-- 1 root root 601 2007-05-31 13:45 id_dsa.pub -rw------- 1 root root 1675 2007-05-31 13:43 id_rsa -rw-r--r-- 1 root root 393 2007-05-31 13:43 id_rsa.pub -rw-r--r-- 1 root root 884 2007-05-31 13:29 known_hosts |
#vim .ssh/id_rsa.pub
|
#cat .ssh/
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ id_dsa id_dsa.pub id_rsa id_rsa.pub known_hosts ".ssh/id_rsa.pub" 1L, 393C ------------------------------------------------------------------------------------------------------------------------------- |
#cat .ssh/id_rsa.pub | ssh 192.168.16.3 'cat >> ~/.ssh/authorized_keys'
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ root@192.168.16.3's password: ".ssh/id_rsa.pub" 1L, 393C ------------------------------------------------------------------------------------------------------------------------------- |
#ssh 192.168.16.3
Last login: Thu May 31 13:41:06 2007 Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. l3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.16.3 closed. |
#cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ root@192.168.16.2's password: ".ssh/id_rsa.pub" 1L, 393C ------------------------------------------------------------------------------------------------------------------------------- |
#cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ".ssh/id_rsa.pub" 1L, 393C ------------------------------------------------------------------------------------------------------------------------------- |
#for i in 1,2,3,4 ; do ssh 192.168.16.$i 'echo PORA NA OBED | wall' ;done
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ssh: 192.168.16.1,2,3,4: Name or service not known ".ssh/id_rsa.pub" 1L, 393C ------------------------------------------------------------------------------------------------------------------------------- |
#for i in 1 2 3 4 ; do ssh 192.168.16.$i 'echo PORA NA OBED | wall' ;done
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.1' (RSA) to the list of known hosts. root@192.168.16.1's password: wall: /dev/pts/14: No such file or directory The authenticity of host '192.168.16.4 (192.168.16.4)' can't be established. RSA key fingerprint is de:b0:ed:bc:87:d4:04:46:f8:f9:26:31:c3:84:2a:63. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.4' (RSA) to the list of known hosts. root@192.168.16.4's password: ------------------------------------------------------------------------------------------------------------------------------- |
#cat /etc/motd
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux linux1 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! LINUX1 !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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. ------------------------------------------------------------------------------------------------------------------------------- |
#cat /etc/motd
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux linux1 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! LINUX1 !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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. ------------------------------------------------------------------------------------------------------------------------------- |
#cat .ssh/id_rsa.pub | ssh 192.168.16.1
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ root@192.168.16.1's password: ".ssh/id_rsa.pub" 1L, 393C ------------------------------------------------------------------------------------------------------------------------------- |
#cat .ssh/id_rsa.pub | ssh 192.168.16.4 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.4's password: |
#for i in 1 2 3 4 ; do ssh 192.168.16.$i 'echo PORA NA OBED | wall' ;done
wall: /dev/pts/14: No such file or directory |
#while true ;do for i in 1 2 3 4 ; do ssh 192.168.16.$i 'echo PORA NA OBED | wall' ;done;done
wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory ^[wall: /dev/pts/14: No such file or directory wall: /dev/pts/14: No such file or directory ~wall: /dev/pts/14: No such file or directory [1]+ Stopped ssh 192.168.16.$i 'echo PORA NA OBED | wall' ------------------------------------------------------------------------------------------------------------------------------- |
#echo $
$_ $BASH_SUBSHELL $HISTFILESIZE $MACHTYPE $RANDOM $A $BASH_VERSINFO $HISTSIZE $MAIL $SECONDS $B $BASH_VERSION $HOME $MAILCHECK $SHELL $BASH $COLUMNS $HOSTNAME $old_file $SHELLOPTS $bash205 $COMP_WORDBREAKS $HOSTTYPE $OPTERR $SHLVL $bash205b $DIFFNAME $IFS $OPTIND $SSH_CLIENT $bash3 $DIR $L3_HOME $OSTYPE $SSH_CONNECTION $BASH_ARGC $DIRSTACK $L3_PARENT_TTY $PATH $SSH_TTY $BASH_ARGV $editor_file $L3_SESSION_ID $PIPESTATUS $TERM $BASH_COMMAND $editor_name $L3_TAMPERED_EDITORS $PPID $TIME $BASH_COMPLETION $EUID $LANG $PS1 $UID $BASH_COMPLETION_DIR $GROUPS $LINENO $PS2 $USER $BASH_LINENO $HISTCMD $LINES $PS4 $BASH_SOURCE $HISTFILE $LOGNAME $PWD |
#screen
|
#. /etc/bash_completion
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# . /etc/bash_completion [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |
#apt-get install openssh-server
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Уже установлена самая новая версия openssh-server. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#apt-get install open ssh-server
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Пакет open - виртуальный, его функции предоставляются пакетами: kbd 1.12-17 console-tools 1:0.2.3dbs-65 Вы должны явно указать, какой именно вы хотите установить. E: Для пакета open не найдены кандидаты на установку |
#apt-get install openssh-server
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Уже установлена самая новая версия openssh-server. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 1d:14:00:21:24:4c:42:0b:e0:1a:7f:81:60:32:34:09 root@linux1 |
#ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 1e:c1:9f:d5:67:40:6c:2e:05:f3:d2:ff:04:3f:ae:02 root@linux1 |
#cat .ssh/id_rsa.pub | ssh -l root 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.2's password: |
#cat ~/.ssh/id_rsa_pub | ssh 192.168.16.3 'cat >> ~/.ssh/authorized_keys'
cat: /root/.ssh/id_rsa_pub: No such file or directory |
#ssh 192.168.16.2
Last login: Thu May 31 13:41:49 2007 Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 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. l3-agent is already running: pid=2656; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.16.2 closed. |
#cat .ssh/id_rsa.pub | ssh -l root 192.168.16.3 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.3's password: |
#cat .ssh/id_rsa.pub | ssh -l root 192.168.16.4 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.4's password: |
#ssh 192.168.16.3
Last login: Thu May 31 14:00:53 2007 from linux4.net.nt Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. l3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.16.3 closed. |
#ssh 192.168.16.4
Last login: Wed May 30 18:22:57 2007 from linux1.net.nt Linux linux4 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. |
#cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBudqThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3ua9MwIo3tP+VPybUZfKiSvh01Ubze0Fvc5gDjV48Yx95POdEu1sPV/lRhZFHtChOoLViyPRofrr0t86NirqVfcGlOfPj5DqxePqa3kAVFBBwQ1bZiFKptUM1ML4JDFL2Qj3m4xmF3MEYXk56j8c3VXwm6AgqDakugGKEGlNSkVCmQj8JB7jEFxNsL97jhJLIhFYbEWuupuoWY36cQhepehiHZKHCABAZA8fK1Mv5zAxfETA8oZpKvx9voyjK2lwrP7bnxK5yjlpWibZCpCvD4tO/XOg9You5zKaZWJcmofzb6PsjUSQC8D027ts4Qw9Uf5LyTSXsjuI9j2DrlV1Kw== root@linux3 |
#cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfn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@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# . /etc/bash_completion Last login: Thu May 31 15:01:53 2007 from linux1.net.nt Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 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. l3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.16.3 closed. |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# . /etc/bash_completion [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ping 192.168.16.2 PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. ------------------------------------------------------------------------------------------------------------------------------- |
#ping 192.168.16.2
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ping 192.168.16.2 PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. --- 192.168.16.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2002ms [root@linux1:~]# PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. --- 192.168.16.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2002ms ------------------------------------------------------------------------------------------------------------------------------- |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# . /etc/bash_completion [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ping 192.168.16.2 PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. --- 192.168.16.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2002ms [root@linux1:~]# ssh: connect to host 192.168.16.2 port 22: No route to host ------------------------------------------------------------------------------------------------------------------------------- |
#ls -l .ssh/
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ping 192.168.16.2 PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. --- 192.168.16.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2002ms [root@linux1:~]# ls -l .ssh/ итого 24 -rw-r--r-- 1 root root 1179 2007-05-31 15:04 authorized_keys -rw------- 1 root root 668 2007-05-31 13:45 id_dsa ... -rw-r--r-- 1 root root 1768 2007-05-31 13:56 known_hosts [root@linux1:~]# итого 24 -rw-r--r-- 1 root root 1179 2007-05-31 15:04 authorized_keys -rw------- 1 root root 668 2007-05-31 13:45 id_dsa -rw-r--r-- 1 root root 601 2007-05-31 13:45 id_dsa.pub -rw------- 1 root root 1675 2007-05-31 14:59 id_rsa -rw-r--r-- 1 root root 393 2007-05-31 14:59 id_rsa.pub -rw-r--r-- 1 root root 1768 2007-05-31 13:56 known_hosts ------------------------------------------------------------------------------------------------------------------------------- |
#w
15:08:36 up 5:42, 10 users, load average: 0,31, 0,14, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT----------------------------------------------------------- user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr ... 15:08:36 up 5:42, 10 users, load average: 0,31, 0,14, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr |
#ssh-keygen -R IP
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# w 15:08:36 up 5:42, 10 users, load average: 0,31, 0,14, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT----------------------------------------------------------- user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |
#ssh 192.168.16.3
-rw-r--r-- 1 root root 601 2007-05-31 13:45 id_dsa.pub -rw------- 1 root root 1675 2007-05-31 14:59 id_rsa -rw-r--r-- 1 root root 393 2007-05-31 14:59 id_rsa.pub -rw-r--r-- 1 root root 1768 2007-05-31 13:56 known_hosts [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# w 15:08:36 up 5:42, 10 users, load average: 0,31, 0,14, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT ... root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R |
#cat .ssh/known_hosts
root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# ... |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7fm6p4Fp9koxXjNx8GuUIndiPUk95llI9y+d9W7dOTpzLykXTovGAgpBdIsgicFxEWhc4/9G1sDS5dFHYa8S3JABXbiLqxz1MkoYtxOcCq9HNwNQdoq1gPRP7nPr7wFt3JAdOClZq1IEzNaMXokHpGDe6knjIS79wGHUxrGJ0IkYZrz/frf96FpMUQmKQJ0FFUw6LUcxmGLJprPu1mWXgOLd8DZbby8DSqXYU82vMNiGUHPOC0sfctBMOL5A+XO8FUBNGTTb8eAW7ReSOtrF+aUvruvRqKOlKl1FtRcGJzYJSG1 |1|PMt5XfBVm2i3zAZAdOE7I2o9CUw=|h6T2NfFWFgntnueFNRI95Y5Tm5o= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+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pZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D [root@linux1:~]# cat .ssh/known_hosts |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7fm6p4Fp9koxXjNx8GuUIndiPUk95llI9y+d9W7dOTpzLykXTovGAgpBdIsgicFxEWhc4/9G1sDS5dFHYa8S3JABXbiLqxz1MkoYtxOcCq9HNwNQdoq1gPRP7nPr7wFt3JAdOClZq1IEzNaMXokHpGDe6knjIS79wGHUxrGJ0IkYZrz/frf96FpMUQmKQJ0FFUw6LUcxmGLJprPu1mWXgOLd8DZbby8DSqXYU82vMNiGUHPOC0sfctBMOL5A+XO8FUBNGTTb8eAW7ReSOtrF+aUvruvRqKOlKl1FtRcGJzYJSG1 |1|PMt5XfBVm2i3zAZAdOE7I2o9CUw=|h6T2NfFWFgntnueFNRI95Y5Tm5o= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+Xx2ANmncMUPjdvK5arWwWrKMiWW+SmCd+esYgxx47FTsqtlgVqeXgs3m7yicYwtluVraADE0c/w3Bz8MLHDm8jjR9t25anFRS4N7cIupHG8UbmIm48u2k/bevME+dUVap9QvJG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Last login: Thu May 31 15:09:07 2007 from linux3.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 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. l3-agent is already running: pid=2662; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# cat .ssh/known_hosts |
#exit
Connection to 192.168.16.2 closed. |
#ssh-keygen -R 192.168.16.2
user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7fm6p4Fp9koxXjNx8GuUIndiPUk95llI9y+d9W7dOTpzLykXTovGAgpBdIsgicFxEWhc4/9G1sDS5dFHYa8S3JABXbiLqxz1MkoYtxOcCq9HNwNQdoq1gPRP7nPr7wFt3JAdOClZq1IEzNaMXokHpGDe6knjIS79wGHUxrGJ0IkYZrz/frf96FpMUQmKQJ0FFUw6LUcxmGLJprPu1mWXgOLd8DZbby8DSqXYU82vMNiGUHPOC0sfctBMOL5A+XO8FUBNGTTb8eAW7ReSOtrF+aUvruvRqKOlKl1FtRcGJzYJSG1 |1|PMt5XfBVm2i3zAZAdOE7I2o9CUw=|h6T2NfFWFgntnueFNRI95Y5Tm5o= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+Xx2ANmncMUPjdvK5arWwWrKMiWW+SmCd+esYgxx47FTsqtlgVqeXgs3m7yicYwtluVraADE0c/w3Bz8MLHDm8jjR9t25anFRS4N7cIupHG8UbmIm48u2k/bevME+dUVap9QvJG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old [root@linux1:~]# cat .ssh/known_hosts |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1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bzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D The authenticity of host '192.168.16.2 (192.168.16.2)' can't be established. RSA key fingerprint is 9e:2d:a9:2d:1c:93:bd:a9:4e:1a:2b:31:c8:fa:a4:3c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.2' (RSA) to the list of known hosts. Last login: Thu May 31 15:10:23 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 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. l3-agent is already running: pid=2662; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# cat .ssh/known_hosts |
#exit
Connection to 192.168.16.2 closed. |
#ssh-keygen -p .ssh/id_rsa.pub
-C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of 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. [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -p -f .ssh/id_rsa.pub
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7fm6p4Fp9koxXjNx8GuUIndiPUk95llI9y+d9W7dOTpzLykXTovGAgpBdIsgicFxEWhc4/9G1sDS5dFHYa8S3JABXbiLqxz1MkoYtxOcCq9HNwNQdoq1gPRP7nPr7wFt3JAdOClZq1IEzNaMXokHpGDe6knjIS79wGHUxrGJ0IkYZrz/frf96FpMUQmKQJ0FFUw6LUcxmGLJprPu1mWXgOLd8DZbby8DSqXYU82vMNiGUHPOC0sfctBMOL5A+XO8FUBNGTTb8eAW7ReSOtrF+aUvruvRqKOlKl1FtRcGJzYJSG1 |1|PMt5XfBVm2i3zAZAdOE7I2o9CUw=|h6T2NfFWFgntnueFNRI95Y5Tm5o= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+Xx2ANmncMUPjdvK5arWwWrKMiWW+SmCd+esYgxx47FTsqtlgVqeXgs3m7yicYwtluVraADE0c/w3Bz8MLHDm8jjR9t25anFRS4N7cIupHG8UbmIm48u2k/bevME+dUVap9QvJG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '.ssh/id_rsa.pub' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: .ssh/id_rsa.pub Enter old passphrase: [root@linux1:~]# cat .ssh/known_hosts |
#ls -l .ssh/id_rsa.pub
-rw-r--r-- 1 root root 393 2007-05-31 14:59 .ssh/id_rsa.pub |
#chmod 0600 .ssh/id_rsa.pub
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT----------------------------------------------------------- user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh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YXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D [root@linux1:~]# cat .ssh/known_hosts |
#ls -l .ssh/id_rsa.pub
-rw------- 1 root root 393 2007-05-31 14:59 .ssh/id_rsa.pub |
#ssh-keygen -p -f .ssh/id_rsa.pub
user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRt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WFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Enter old passphrase: Bad passphrase. [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -p -f .ssh/id_rsa.pub
Enter old passphrase: Bad passphrase. |
#ssh-keygen -p -f .ssh/id_rsa.pub
Enter old passphrase: Bad passphrase. |
#ssh-keygen -P -f .ssh/id_rsa.pub
-C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of 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. [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -P rootpass -f .ssh/id_rsa.pub
root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux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JG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Generating public/private rsa key pair. .ssh/id_rsa.pub already exists. Overwrite (y/n)? n [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -N rootpass -f .ssh/id_rsa.pub
root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]#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JBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Generating public/private rsa key pair. .ssh/id_rsa.pub already exists. Overwrite (y/n)? n [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -N-f .ssh/id_rsa.pub
Too many arguments. 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 IETF SECSH 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. |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBud qThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3 PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ id_dsa id_dsa.pub id_rsa id_rsa.pub known_hosts ".ssh/id_rsa.pub" 1L, 393C -------------------------------------------------------------------------------------------------------------------------------
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBudqThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3ua9MwIo3tP+VPybUZfKiSvh01Ubze0Fvc5gDjV48Yx95POdEu1sPV/lRhZFHtChOoLViyPRofrr0t86NirqVfcGlOfPj5DqxePqa3kAVFBBwQ1bZiFKptUM1ML4JDFL2Qj3m4xmF3MEYXk56j8c3VXwm6AgqDakugGKEGlNSkVCmQj8JB7jEFxNsL97jhJLIhFYbEWuupuoWY36cQhepehiHZKHCABAZA8fK1Mv5zAxfETA8oZpKvx9voyjK2lwrP7bnxK5yjlpWibZCpCvD4tO/XOg9You5zKaZWJcmofzb6PsjUSQC8D027ts4Qw9Uf5LyTSXsjuI9j2DrlV1Kw== root@linux3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApCShz/JrXmVTd0ibaGTAZWhNRkG9LgJ6/Prn6vq/phab47apSiIxm4UnNGPBX1m5E4Bl2L8ow8/Fb/ftWJSkkFPS1Fm4d4dGOKgFZ8wP4RocX0780MZQdydFhra8p5lBuSH3ylYbTSe6IYfZVYZx3+ahwxV7luXJWdvgsZWY8yJAY2FthuSY/1qLUDjWRTJMHYDOagAqI7uLFRiEUtFVkVet5u4pWoauWongAmWzNYA9SLlhZUzZ1Dx630NA2b1Dr+io/iObMWSkpjHnXJz7lqi+Ax+LumxrguB62tqE8nwkU+MnYB5dpHpcB94H3OJLNAozVko1YzQq0HqyHMcEaw== root@linux2
root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHb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5Tm5o= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+Xx2ANmncMUPjdvK5arWwWrKMiWW+SmCd+esYgxx47FTsqtlgVqeXgs3m7yicYwtluVraADE0c/w3Bz8MLHDm8jjR9t25anFRS4N7cIupHG8UbmIm48u2k/bevME+dUVap9QvJG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D [root@linux1:~]# cat .ssh/known_hosts
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux linux1 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! LINUX1 !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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. -------------------------------------------------------------------------------------------------------------------------------
Время первой команды журнала | 13:37:19 2007- 5-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:14:12 2007- 5-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 23.76 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 10.89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.68 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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