/l3/users/29-05-2007/nt-lnet/linux2.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 |
|
#w
12:11:56 up 7 min, 3 users, load average: 0,00, 0,06, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 12:04 6:58m 0.00s 0.00s script -f -q /root/.lilalo//1724631257700023425-1180602299.scri root tty2 - 12:05 6:29m 0.67s 0.00s script -f -q /root/.lilalo//16280129431580229000-1180602301.scr root tty3 - 12:05 0.00s 0.64s 0.01s script -f -q /root/.lilalo//3076017566288789196-1180602335.scri |
#ssh -v -v 192.168.16.1 | more
|
#ssh -l 192.168.16.1
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-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 tunnel:tunnel] [user@]hostname [command] ------------------------------------------------------------------------------------------------------------------------------- |
#ssh -l 192.168.16.1 root
ssh: rootl: Name or service not known |
#ssh -l 192.168.16.1 root
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh: root: Name or service not known ------------------------------------------------------------------------------------------------------------------------------- |
#ssh -l root 192.168.16.1
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# root@192.168.16.1's password: ------------------------------------------------------------------------------------------------------------------------------- |
#ssh -c 192.168.16.1
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# Unknown cipher type '192.168.16.1' ------------------------------------------------------------------------------------------------------------------------------- |
#./configure
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ------------------------------------------------------------------------------------------------------------------------------- |
#ssh -l root 192.168.16.1
root@192.168.16.1's password: Last login: Thu May 31 13:41:11 2007 from linux3.net.nt 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. l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#ls -l
итого 3210 -rw-r--r-- 1 root root 0 2007-05-22 10:52 1 -rw-r--r-- 1 root root 0 2007-05-22 10:52 12 -rw-r--r-- 1 root root 0 2007-05-22 10:52 123 -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.gif -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.jpg -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.png drwxr-xr-x 3 root root 1024 2007-05-31 13:25 Desktop -rw-r--r-- 1 root root 4190 2007-05-29 07:27 install -rw------- 1 root root 4973 2007-05-21 16:56 nohup.out -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVOneOdInAkOvORAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_neOdInAkOvO_RAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVONEoDinakovoRAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_NEoDinakovo_RAVNO drwxrwxrwx 7 500 500 1024 2007-05-31 11:59 sim-0.9.4.3 -rw-r--r-- 1 root root 3251965 2007-05-31 11:49 sim-0.9.4.3.tar.bz2 -rw-r--r-- 1 root root 5340 2007-05-22 10:48 userapp -rw-r--r-- 1 root root 25 2007-05-22 13:48 user_passwd -rwxr-xr-x 1 root root 42 2007-05-22 11:05 var |
#date
Чтв Май 31 13:54:29 EEST 2007 |
#vlock -v
vlock version 1.3 |
#vlock -a
*** This tty is not a VC (virtual console). *** *** It may not be securely locked. *** This TTY is now locked by root. Please press Enter to unlock. Password: Try to authenticate as root instead: Password: |
#apt-get install openssh-server
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Будут установлены следующие дополнительные пакеты: openssh-client Предлагаемые пакеты: ssh-askpass rssh molly-guard Пакеты, которые будут обновлены: openssh-client openssh-server обновлено 2, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 96 пакетов не обновлено. Необходимо скачать 838kБ архивов. ... Подготовка к замене пакета openssh-server 1:4.3p2-2 (используется файл .../openssh-server_1%3a4.3p2-9_i386.deb)... Распаковывается замена для пакета openssh-server ... Подготовка к замене пакета openssh-client 1:4.3p2-2 (используется файл .../openssh-client_1%3a4.3p2-9_i386.deb)... Распаковывается замена для пакета openssh-client ... Настраивается пакет openssh-client (4.3p2-9) ... Устанавливается новая версия файла конфигурации /etc/ssh/ssh_config ... Устанавливается новая версия файла конфигурации /etc/ssh/moduli ... Настраивается пакет openssh-server (4.3p2-9) ... Устанавливается новая версия файла конфигурации /etc/pam.d/ssh ... Restarting OpenBSD Secure Shell server: sshd. |
#ssh-keygen -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): .ssh/id_dsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in .ssh/id_dsa . Your public key has been saved in .ssh/id_dsa .pub. The key fingerprint is: 81:1c:30:bc:39:3c:c4:a2:3e:e5:72:f9:82:b0:86:42 root@linux2 |
#cat .ssh | id_dsa.pub | ssh 192.168.16.1 'cat >> ~./ssh/authrized_keys'
bash: id_dsa.pub: command not found cat: .ssh: Is a directory root@192.168.16.1's password: bash: ~./ssh/authrized_keys: No such file or directory |
#cat .ssh | id_dsa.pub | ssh 192.168.16.1 'cat >> ~./ssh/authorized_keys'
bash: id_dsa.pub: command not found cat: .ssh: Is a directory root@192.168.16.1's password: bash: ~./ssh/authorized_keys: No such file or directory |
#ssh-keygen -t rsa
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: 36:1a:2a:dc:19:e5:f6:e1:83:14:97:b7:87:90:cb:c2 root@linux2 |
#cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~./ssh/authorized_keys'
root@192.168.16.1's password: bash: ~./ssh/authorized_keys: No such file or directory |
#cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.1's password: |
#cat .ssh/id_rsa.pub | ssh 192.168.16.3 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.3's password: |
#cat .ssh/id_rsa.pub | ssh 192.168.16.4 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.4's password: |
#ssh 192.168.16.4
Last login: Thu May 31 15:07:31 2007 from linux3.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. l3-agent is already running: pid=5566; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.16.4 closed. |
#ssh 192.168.16.1
Last login: Thu May 31 15:08:58 2007 from linux4.net.nt 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. l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.1
Last login: Thu May 31 15:09:26 2007 from linux4.net.nt 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. l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#ssh-keygen -R 192.168.16.1
Enter same passphrase again: Your identification has been saved with the new passphrase. [root@linux1:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys' [root@linux1:~]# ssh 192.168.16.2 Last login: Thu May 31 15:15:48 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 ... [root@linux2:~]# ssh-keygen -R 192.168.16.1 /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old [root@linux2:~]# exit Connection to 192.168.16.2 closed. [root@linux1:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys' [root@linux1:~]# /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old ------------------------------------------------------------------------------------------------------------------------------- |
#vim .ssh/authorized_keys
1,2d0 < ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBudqThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 < ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4Flt+LowPvHqL/SSrymsUFNFk+8QdUOLiT/SHrDTIssty6ZCPB0ali7+Yo24asHyXVQDuAU5h3WE1zApXRqWei7tmPWXLe4sDJh7AmmQ2mNpm/SgDYu09WPntWeQU4z400rmyUxiOwBV7mDyCLT2B8nVryjJWXoDZnRloCO1QTtTwqKB4Sq3tIOx84NnncQmxhKGGFpjl+pmrD6IsLY8EHgEkULn0NbYNGofhu7H/9fqOg1DTNw10dNqioq8PFntpfHX7Eop5TMZa4jGDCqkV4Z2SLcOGRmywc4FMiFZvZu/3EKUmoEcwVdLp1oPrr412Udcg9IvlKtqBrnRGWLOIQ== root@linux1 4,63d1 < -----BEGIN RSA PRIVATE KEY----- < Proc-Type: 4,ENCRYPTED < DEK-Info: DES-EDE3-CBC,E8E244CAE511B8BB < < yPkFF2SiXXZMCw1dQh8ulaN3M0X2XMYwvaBjLiwWG5tLkIfRtBdHmdOn9WKeGORK < qlgI+iMSWw+VeAdqKSFG6vtDOxdavWRbKEQxIfyYHy0BpOVF4nnQpgbim9+oIHUd < UNWNZhZxmfXrutZD6xhpW+dJ1QOCcG6TrUFps+qIWbYGUTx7o2PN+fUtwh7a+U7X < 2PqS7p+aYFIegVILuWEaK3olWk6LADuu/jFEQT5u5ZvUFiJTYanIh3F7rY/F6PpE < S2p7FbkLPAgM537cf+ME395SSpeTy2Z9CLDtAcMsmOU3Xq+D50bU2NUNbeCMaB13 < 3MWnA1WE/KAkF6UWB7tkZkOynsiExf/8Fvm69vXJBGUlpTT04tD8fi+XobshyaLZ < Bu2KuJMdvEs78jvhW/NBfDey4eLeQCDAZo33rHx2k8GVyhc7N2+2fD/OlHY4oeCK < Bj2tsn5GS+F6XB4tS2vcOCx29i+dbwaLcFC7jxGeuxD2mmekdPxV7kv/n991Imwj < GkCy+3A/EGw4IoTFUIlgiMGRO6kbTBMlLMVgUH3EWYlLDVZvxdFViF1TeztBZoZv < xK9kTFRp2yPrpeQYQY98poINQCibL9FdwctX9/Wf2/zi/zTv9A8ve/K8tFDcBCZ7 < xMUOCtpp6gYWh+3tdGZYVTecieLXzv3xb9a6NSzuDt/U/fp28e5pvxL0NuQoOzLY < 6324KPj7L8SftxdEWqyNTqaFL/VMqcoZBeuhZ699lkloBnj9fm7o5I0Fvedhjw4M < GNOLzbDWhcgPBCU8+WKudA9DmWPTebqITFFj65ceKXI47M7iGhwRYiyu3PSsQpMg < swQ2woBUxzQUHTbJogcqz3p2ZLhtHF961tUX0q4wgZP6EegDabWtCe0ZGRbaZS6M < lMl3iAUtt0kHG6ky2tX4jGyzew7pkYQPPwuLRqR36Z9UbEzCtTqCOAMOmu/Dq6B0 < RI1q0hsS57IUp/TFSwvidWgqU4CR+WgHSjcSxtVEcvGFE+VV2LIzWNMqYQYRHu1j < kLA1/M0BYmqAXUM+DDdexgeZW/qJCCZk1pPBGPw3hiqZMhvuFPix4NXQDLyyhSwl < eZEcisV4NYOEWaweAxccZtuid38fi+peIX0RefC2bMh8l2hJcKhzznGWcw5xnJIw < t0vSl44Q3Yf1roLM+QvFfWwe6gbLvSjJfn6KP8BASbLrg7IHY8y2zh/pXS/8uh7p < itUDXVHOT9wNbbQKk2gIe7LWOND1O9b3612varFl3bOYAVlPmnuLqNVLprfTQ+im < OIE/nAjplBwD61EE0Rph3o1I87LvM+gBj+eK4pW/rnDx4pVZjlPF+7tgl4WgkqtK < oUER6F70ASrcXEHKhVoaZvRjMhIVnVEHLCORHx/m1/8HHLFKzkB/1NgylCjpQHWt < iK6XXu4leIE8T5gMKEfaCj3ZER9iB0fX6MNMgvK3EvZ3QMmC2dbuX36IFKudTffE < jD6Y+Un6p07aGkvlpGrMkReUJElz43hY9jOXPkwWGsolPPXgHiqyb9aVhG3CpTAM < WZSV0MbOqg+/JvPiIeQOySDwHoi1549AeNS6saR1FvHBdNUSsNsyMQ== < -----END RSA PRIVATE KEY----- < -----BEGIN RSA PRIVATE KEY----- < Proc-Type: 4,ENCRYPTED < DEK-Info: DES-EDE3-CBC,E8E244CAE511B8BB < < yPkFF2SiXXZMCw1dQh8ulaN3M0X2XMYwvaBjLiwWG5tLkIfRtBdHmdOn9WKeGORK < qlgI+iMSWw+VeAdqKSFG6vtDOxdavWRbKEQxIfyYHy0BpOVF4nnQpgbim9+oIHUd < UNWNZhZxmfXrutZD6xhpW+dJ1QOCcG6TrUFps+qIWbYGUTx7o2PN+fUtwh7a+U7X < 2PqS7p+aYFIegVILuWEaK3olWk6LADuu/jFEQT5u5ZvUFiJTYanIh3F7rY/F6PpE < S2p7FbkLPAgM537cf+ME395SSpeTy2Z9CLDtAcMsmOU3Xq+D50bU2NUNbeCMaB13 < 3MWnA1WE/KAkF6UWB7tkZkOynsiExf/8Fvm69vXJBGUlpTT04tD8fi+XobshyaLZ < Bu2KuJMdvEs78jvhW/NBfDey4eLeQCDAZo33rHx2k8GVyhc7N2+2fD/OlHY4oeCK < Bj2tsn5GS+F6XB4tS2vcOCx29i+dbwaLcFC7jxGeuxD2mmekdPxV7kv/n991Imwj < GkCy+3A/EGw4IoTFUIlgiMGRO6kbTBMlLMVgUH3EWYlLDVZvxdFViF1TeztBZoZv < xK9kTFRp2yPrpeQYQY98poINQCibL9FdwctX9/Wf2/zi/zTv9A8ve/K8tFDcBCZ7 < xMUOCtpp6gYWh+3tdGZYVTecieLXzv3xb9a6NSzuDt/U/fp28e5pvxL0NuQoOzLY < 6324KPj7L8SftxdEWqyNTqaFL/VMqcoZBeuhZ699lkloBnj9fm7o5I0Fvedhjw4M < GNOLzbDWhcgPBCU8+WKudA9DmWPTebqITFFj65ceKXI47M7iGhwRYiyu3PSsQpMg < swQ2woBUxzQUHTbJogcqz3p2ZLhtHF961tUX0q4wgZP6EegDabWtCe0ZGRbaZS6M < lMl3iAUtt0kHG6ky2tX4jGyzew7pkYQPPwuLRqR36Z9UbEzCtTqCOAMOmu/Dq6B0 < RI1q0hsS57IUp/TFSwvidWgqU4CR+WgHSjcSxtVEcvGFE+VV2LIzWNMqYQYRHu1j < kLA1/M0BYmqAXUM+DDdexgeZW/qJCCZk1pPBGPw3hiqZMhvuFPix4NXQDLyyhSwl < eZEcisV4NYOEWaweAxccZtuid38fi+peIX0RefC2bMh8l2hJcKhzznGWcw5xnJIw < t0vSl44Q3Yf1roLM+QvFfWwe6gbLvSjJfn6KP8BASbLrg7IHY8y2zh/pXS/8uh7p < itUDXVHOT9wNbbQKk2gIe7LWOND1O9b3612varFl3bOYAVlPmnuLqNVLprfTQ+im < OIE/nAjplBwD61EE0Rph3o1I87LvM+gBj+eK4pW/rnDx4pVZjlPF+7tgl4WgkqtK < oUER6F70ASrcXEHKhVoaZvRjMhIVnVEHLCORHx/m1/8HHLFKzkB/1NgylCjpQHWt < iK6XXu4leIE8T5gMKEfaCj3ZER9iB0fX6MNMgvK3EvZ3QMmC2dbuX36IFKudTffE < jD6Y+Un6p07aGkvlpGrMkReUJElz43hY9jOXPkwWGsolPPXgHiqyb9aVhG3CpTAM < WZSV0MbOqg+/JvPiIeQOySDwHoi1549AeNS6saR1FvHBdNUSsNsyMQ== < -----END RSA PRIVATE KEY----- |
#ssh-keygen -R 192.168.16.1
|
#vim .ssh/authorized_keys
2,31d1 < -----BEGIN RSA PRIVATE KEY----- < Proc-Type: 4,ENCRYPTED < DEK-Info: DES-EDE3-CBC,E8E244CAE511B8BB < < yPkFF2SiXXZMCw1dQh8ulaN3M0X2XMYwvaBjLiwWG5tLkIfRtBdHmdOn9WKeGORK < qlgI+iMSWw+VeAdqKSFG6vtDOxdavWRbKEQxIfyYHy0BpOVF4nnQpgbim9+oIHUd < UNWNZhZxmfXrutZD6xhpW+dJ1QOCcG6TrUFps+qIWbYGUTx7o2PN+fUtwh7a+U7X < 2PqS7p+aYFIegVILuWEaK3olWk6LADuu/jFEQT5u5ZvUFiJTYanIh3F7rY/F6PpE < S2p7FbkLPAgM537cf+ME395SSpeTy2Z9CLDtAcMsmOU3Xq+D50bU2NUNbeCMaB13 < 3MWnA1WE/KAkF6UWB7tkZkOynsiExf/8Fvm69vXJBGUlpTT04tD8fi+XobshyaLZ < Bu2KuJMdvEs78jvhW/NBfDey4eLeQCDAZo33rHx2k8GVyhc7N2+2fD/OlHY4oeCK < Bj2tsn5GS+F6XB4tS2vcOCx29i+dbwaLcFC7jxGeuxD2mmekdPxV7kv/n991Imwj < GkCy+3A/EGw4IoTFUIlgiMGRO6kbTBMlLMVgUH3EWYlLDVZvxdFViF1TeztBZoZv < xK9kTFRp2yPrpeQYQY98poINQCibL9FdwctX9/Wf2/zi/zTv9A8ve/K8tFDcBCZ7 < xMUOCtpp6gYWh+3tdGZYVTecieLXzv3xb9a6NSzuDt/U/fp28e5pvxL0NuQoOzLY < 6324KPj7L8SftxdEWqyNTqaFL/VMqcoZBeuhZ699lkloBnj9fm7o5I0Fvedhjw4M < GNOLzbDWhcgPBCU8+WKudA9DmWPTebqITFFj65ceKXI47M7iGhwRYiyu3PSsQpMg < swQ2woBUxzQUHTbJogcqz3p2ZLhtHF961tUX0q4wgZP6EegDabWtCe0ZGRbaZS6M < lMl3iAUtt0kHG6ky2tX4jGyzew7pkYQPPwuLRqR36Z9UbEzCtTqCOAMOmu/Dq6B0 < RI1q0hsS57IUp/TFSwvidWgqU4CR+WgHSjcSxtVEcvGFE+VV2LIzWNMqYQYRHu1j < kLA1/M0BYmqAXUM+DDdexgeZW/qJCCZk1pPBGPw3hiqZMhvuFPix4NXQDLyyhSwl < eZEcisV4NYOEWaweAxccZtuid38fi+peIX0RefC2bMh8l2hJcKhzznGWcw5xnJIw < t0vSl44Q3Yf1roLM+QvFfWwe6gbLvSjJfn6KP8BASbLrg7IHY8y2zh/pXS/8uh7p < itUDXVHOT9wNbbQKk2gIe7LWOND1O9b3612varFl3bOYAVlPmnuLqNVLprfTQ+im < OIE/nAjplBwD61EE0Rph3o1I87LvM+gBj+eK4pW/rnDx4pVZjlPF+7tgl4WgkqtK < oUER6F70ASrcXEHKhVoaZvRjMhIVnVEHLCORHx/m1/8HHLFKzkB/1NgylCjpQHWt < iK6XXu4leIE8T5gMKEfaCj3ZER9iB0fX6MNMgvK3EvZ3QMmC2dbuX36IFKudTffE < jD6Y+Un6p07aGkvlpGrMkReUJElz43hY9jOXPkwWGsolPPXgHiqyb9aVhG3CpTAM < WZSV0MbOqg+/JvPiIeQOySDwHoi1549AeNS6saR1FvHBdNUSsNsyMQ== < -----END RSA PRIVATE KEY----- |
#netstat -lnp | grep :6000
Agent pid 21454 [root@linux1:~]# echo $SSH_ $SSH_AGENT_PID $SSH_AUTH_SOCK $SSH_CLIENT $SSH_CONNECTION $SSH_TTY [root@linux1:~]# echo $SSH_ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh ssh ssh-add ssh-agent ssh-argv0 ssh-copy-id sshd ssh-keygen ssh-keyscan [root@linux1:~]# ssh-a ... Usage: ssh-add [options] Options: -l List fingerprints of all identities. -L List public key parameters of all identities. -d Delete identity. -D Delete all identities. -x Lock agent. -X Unlock agent. -t life Set lifetime (in seconds) when adding identities. -c Require confirmation to sign using identities |
#netstat -lnp | grep :6000
Agent pid 21454 [root@linux1:~]# echo $SSH_ $SSH_AGENT_PID $SSH_AUTH_SOCK $SSH_CLIENT $SSH_CONNECTION $SSH_TTY [root@linux1:~]# echo $SSH_ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh ssh ssh-add ssh-agent ssh-argv0 ssh-copy-id sshd ssh-keygen ssh-keyscan [root@linux1:~]# ssh-a ... Usage: ssh-add [options] Options: -l List fingerprints of all identities. -L List public key parameters of all identities. -d Delete identity. -D Delete all identities. -x Lock agent. -X Unlock agent. -t life Set lifetime (in seconds) when adding identities. -c Require confirmation to sign using identities |
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
Agent pid 21454 [root@linux1:~]# echo $SSH_ $SSH_AGENT_PID $SSH_AUTH_SOCK $SSH_CLIENT $SSH_CONNECTION $SSH_TTY [root@linux1:~]# echo $SSH_ [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh ssh ssh-add ssh-agent ssh-argv0 ssh-copy-id sshd ssh-keygen ssh-keyscan [root@linux1:~]# ssh-a ... Usage: ssh-add [options] Options: -l List fingerprints of all identities. -L List public key parameters of all identities. -d Delete identity. -D Delete all identities. -x Lock agent. -X Unlock agent. -t life Set lifetime (in seconds) when adding identities. -c Require confirmation to sign using identities |
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#ss
ss ssh ssh-agent ssh-copy-id ssh-keygen ssindex ssconvert ssh-add ssh-argv0 sshd ssh-keyscan |
#ssh 192.168.16.1
The authenticity of host '192.168.16.1 (192.168.16.1)' can't be established. RSA key fingerprint is 64:4e:85:6e:f3:0d:97:9f:90:0d:f0:77:57:28:e7:1b. 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. Last login: Thu May 31 15:20:39 2007 from linux4.net.nt 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. l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#apt-get install frozen-bable
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово E: Не могу найти пакет frozen-bable |
#apt-get install frozen-buble
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово E: Не могу найти пакет frozen-buble |
#apt-get install frozen-bublle
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово E: Не могу найти пакет frozen-bublle |
#apt-cache search frozen
fb-music-high - High quality, large music files for Frozen-Bubble fb-music-low - Lower quality, small music files for Frozen-Bubble frozen-bubble - Pop out the bubbles ! frozen-bubble-data - Data files for Frozen-Bubble junior-puzzle - Debian Jr. Puzzles pengupop - Online multiplayer clone of Bust a Move |
#apt-get install frozen-bubble
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Будут установлены следующие дополнительные пакеты: fb-music-high frozen-bubble-data libsdl-console libsdl-gfx1.2-4 libsdl-image1.2 libsdl-mixer1.2 libsdl-net1.2 libsdl-pango1 libsdl-perl libsdl-ttf2.0-0 libsmpeg0 НОВЫЕ пакеты, которые будут установлены: fb-music-high frozen-bubble frozen-bubble-data libsdl-console libsdl-gfx1.2-4 libsdl-image1.2 libsdl-mixer1.2 libsdl-net1.2 libsdl-pango1 libsdl-perl libsdl-ttf2.0-0 libsmpeg0 обновлено 0, установлено 12 новых пакетов, для удаления отмечено 0 пакетов, и 96 пакетов не обновлено. Необходимо скачать 22,9MБ архивов. ... Настраивается пакет libsdl-gfx1.2-4 (2.0.13-2+b1) ... Настраивается пакет libsmpeg0 (0.4.5+cvs20030824-1.9) ... Настраивается пакет libsdl-mixer1.2 (1.2.6-1.1+b2) ... Настраивается пакет libsdl-net1.2 (1.2.5-7+b1) ... Настраивается пакет libsdl-pango1 (0.1.2-1) ... Настраивается пакет libsdl-ttf2.0-0 (2.0.8-3+b1) ... Настраивается пакет libsdl-perl (1.20.3dfsg-1) ... Настраивается пакет fb-music-high (0.1.2) ... Настраивается пакет frozen-bubble-data (2.1.0-1) ... Настраивается пакет frozen-bubble (2.1.0-1) ... |
#from
1 .evolution/ .metacity/ .serverauth.3767 12 .gconf/ .moc/ .serverauth.4129 123 .gconfd/ .mozilla/ sim-0.9.4.3/ 1.gif .gnome/ .mplayer/ sim-0.9.4.3.tar.bz2 1.jpg .gnome2/ .nautilus/ .ssh/ 1.png .gnome2_private/ nohup.out .Trash/ .aptitude/ .gnupg/ ODINAKOVOneOdInAkOvORAVNO userapp .bash_history .gstreamer-0.10/ ODINAKOVO_neOdInAkOvO_RAVNO user_passwd .bash_profile .gtkrc-1.2-gnome2 ODINAKOVONEoDinakovoRAVNO var .bashrc .ICEauthority ODINAKOVO_NEoDinakovo_RAVNO .viminfo .beryl/ .inputrc .profile .vimrc .beryl-managerrc install .recently-used .w3m/ .dbus/ .l3rc .serverauth.2725 .Xauthority Desktop/ .lesshst .serverauth.2883 .xinitrc .dia/ .lilalo/ .serverauth.2920 .emerald/ .mc/ .serverauth.3533 |
#dpkg -L frozen-bubble
frozen-bubble frozen-bubble-data |
#dpkg -L frozen-bubble
/. /usr /usr/games /usr/games/frozen-bubble /usr/games/frozen-bubble-editor /usr/share /usr/share/perl5 /usr/share/perl5/fb_c_stuff.pm /usr/share/perl5/fb_net.pm /usr/share/perl5/fb_stuff.pm ... /usr/share/menu/frozen-bubble /usr/lib /usr/lib/perl5 /usr/lib/perl5/auto /usr/lib/perl5/auto/fb_c_stuff /usr/lib/perl5/auto/fb_c_stuff/fb_c_stuff.so /usr/lib/perl5/auto/fb_c_stuff/fb_c_stuff.bs /usr/lib/games /usr/lib/games/frozen-bubble /usr/lib/games/frozen-bubble/fb-server |
#/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] [Graphics Addicted for 0s, 0 bubbles were launched. |
#/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] frozen-bubble frozen-bubble-editor |
#/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify ... Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] [Graphics........ Addicted for 3s, 0 bubbles were launched. |
#/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] [Graphics............] open /dev/sequencer: No such file or directory [Sound Init] [Levels] Ready. ^[[A^[[A^[[B^[[B Addicted for 33s, 2 bubbles were launched. |
#pkill -9 frozen
|
#ssh -f -N -R 22000:127.0.0.1:22 192.168.16.4
|
#netstat -lnp | grep :22000
|
#ssh 192.168.16.4
Last login: Thu May 31 15:08:40 2007 from linux2.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. l3-agent is already running: pid=5566; pidfile=/root/.lilalo/l3-agent.pid |
#ls
1 1.gif Desktop ODINAKOVOneOdInAkOvORAVNO ODINAKOVO_NEoDinakovo_RAVNO userapp 12 1.jpg install ODINAKOVO_neOdInAkOvO_RAVNO sim-0.9.4.3 user_passwd 123 1.png nohup.out ODINAKOVONEoDinakovoRAVNO sim-0.9.4.3.tar.bz2 var |
#vi desktop
|
#ls -l
итого 3210 -rw-r--r-- 1 root root 0 2007-05-22 10:52 1 -rw-r--r-- 1 root root 0 2007-05-22 10:52 12 -rw-r--r-- 1 root root 0 2007-05-22 10:52 123 -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.gif -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.jpg -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.png drwxr-xr-x 4 root root 1024 2007-05-31 15:12 Desktop -rw-r--r-- 1 root root 4190 2007-05-29 07:27 install -rw------- 1 root root 4973 2007-05-21 16:56 nohup.out -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVOneOdInAkOvORAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_neOdInAkOvO_RAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVONEoDinakovoRAVNO -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_NEoDinakovo_RAVNO drwxrwxrwx 7 500 500 1024 2007-05-31 11:59 sim-0.9.4.3 -rw-r--r-- 1 root root 3251965 2007-05-31 11:49 sim-0.9.4.3.tar.bz2 -rw-r--r-- 1 root root 5340 2007-05-22 10:48 userapp -rw-r--r-- 1 root root 25 2007-05-22 13:48 user_passwd -rwxr-xr-x 1 root root 42 2007-05-22 11:05 var |
#cd \desktop
bash: cd: desktop: No such file or directory |
#ssh 192.168.16.4
Last login: Thu May 31 15:53:06 2007 from linux2.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. l3-agent is already running: pid=5566; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 127.0.0.1 closed. |
#ls -li
итого 46372 707334 -rw-r--r-- 1 root root 0 2007-05-22 10:52 1 707336 -rw-r--r-- 1 root root 0 2007-05-22 10:52 12 707337 -rw-r--r-- 1 root root 0 2007-05-22 10:52 123 809427 -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.gif 809426 -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.jpg 809429 -rw-r--r-- 1 root root 0 2007-05-23 10:09 1.png 789018 drwxr-xr-x 4 root root 1024 2007-05-31 15:53 Desktop 809430 -rw-r--r-- 1 root root 4190 2007-05-29 07:27 install 789190 -rw-r--r-- 1 root root 44024356 2007-05-31 14:05 linux-2.6.21.3.tar.bz2 707304 -rw------- 1 root root 4973 2007-05-21 16:56 nohup.out 707339 -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVOneOdInAkOvORAVNO 707341 -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_neOdInAkOvO_RAVNO 707338 -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVONEoDinakovoRAVNO 707340 -rw-r--r-- 1 root root 0 2007-05-22 10:57 ODINAKOVO_NEoDinakovo_RAVNO 789192 drwxrwxrwx 7 500 500 1024 2007-05-31 11:59 sim-0.9.4.3 789219 -rw-r--r-- 1 root root 3251965 2007-05-31 11:49 sim-0.9.4.3.tar.bz2 707333 -rw-r--r-- 1 root root 5340 2007-05-22 10:48 userapp 707256 -rw-r--r-- 1 root root 25 2007-05-22 13:48 user_passwd 707344 -rwxr-xr-x 1 root root 42 2007-05-22 11:05 var |
#startx
xauth: creating new authority file /root/.serverauth.5756 X: warning; process set to priority -1 instead of requested priority 0 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: UNKNOWN Current Operating System: Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 Build Date: 04 April 2007 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. ... скорее всего, X-сервер был выключен или был уничтожен менеджер окон. The application 'vino-session' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. The application 'gnome-cups-icon' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. xinit: connection to X server lost. waiting for X server to shut down |
#netstat -lnp | grep :22000
tcp 0 0 127.0.0.1:22000 0.0.0.0:* LISTEN 6021/sshd: root tcp6 0 0 ::1:22000 :::* LISTEN 6021/sshd: root |
#ssh 127.0.0.1 -p 22000
The authenticity of host '127.0.0.1 (127.0.0.1)' 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)? |
#startx
xauth: creating new authority file /root/.serverauth.5906 X: warning; process set to priority -1 instead of requested priority 0 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: UNKNOWN Current Operating System: Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 Build Date: 04 April 2007 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. ... most likely the X server was shut down or you killed/destroyed the application. The application 'nautilus' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. The application 'vino-session' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. xinit: connection to X server lost. waiting for X server to shut down |
#cp /root/linux-2.6.21.3.tar.bz2 ssh 192.168.16.1 /root/
cp: `/root/linux-2.6.21.3.tar.bz2' и `/root/linux-2.6.21.3.tar.bz2' - один и тот же файл cp: невозможно выполнить stat для `ssh': No such file or directory cp: невозможно выполнить stat для `192.168.16.1': No such file or directory |
#ssh 127.0.0.1 -p 25000
The authenticity of host '127.0.0.1 (127.0.0.1)' 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 '127.0.0.1' (RSA) to the list of known hosts. root@127.0.0.1's password: Last login: Thu May 31 15:50:26 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=2652; pidfile=/root/.lilalo/l3-agent.pid |
#cp /root/linux-2.6.21.3.tar.bz2 ssh 192.168.16.1/root/
cp: указанная цель `192.168.16.1/root/' не является каталогом: No such file or directory |
#ssh 192.168.16.1
Last login: Thu May 31 15:32:55 2007 from linux2.net.nt 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. l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#netstat -lnp | grep :110
[root@linux1:~]# pkill -9 wireshark 0 gnome-keyring-daemon kjournald rpc.statd acpid gnome-panel klogd screen apache gnome-power-manager kmirrord SCREEN atd gnome-screensaver kpsmoused script avahi-daemon: gnome-settings-daemon kseriod sed bash gnome-vfs-daemon kswapd0 ssh-agent bluetooth-applet gnome-volume-manager kthread sshd bonobo-activation-server gpm l3-agent sshd: clock-applet hald mapping-daemon su ... dbus-launch hald-runner NetworkManager vino-session dhcdbd hpiod NetworkManagerDispatcher wireshark dictd inetd nm-applet wnck-applet exim4 init notification-area-applet X gconfd-2 kacpid pdflush xinetd gdm kgameportd portmap x-session-manager getty khelper ps xterm gnome-cups-icon khubd python [root@linux1:~]# pkill -9 wireshark tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2523/popa3d |
#ssh -f -N -R 3300:127.0.0.1:110 192.168.16.3
gnome-cups-icon khubd python [root@linux1:~]# pkill -9 wireshark 0 gnome-keyring-daemon kjournald rpc.statd acpid gnome-panel klogd screen apache gnome-power-manager kmirrord SCREEN atd gnome-screensaver kpsmoused script avahi-daemon: gnome-settings-daemon kseriod sed bash gnome-vfs-daemon kswapd0 ssh-agent bluetooth-applet gnome-volume-manager kthread sshd bonobo-activation-server gpm l3-agent sshd: ... dbus-daemon hald-addon-storage: nautilus update-notifier dbus-launch hald-runner NetworkManager vino-session dhcdbd hpiod NetworkManagerDispatcher wireshark dictd inetd nm-applet wnck-applet exim4 init notification-area-applet X gconfd-2 kacpid pdflush xinetd gdm kgameportd portmap x-session-manager getty khelper ps xterm gnome-cups-icon khubd python [root@linux1:~]# pkill -9 wireshark |
#ssh 192.168.16.3
Last login: Thu May 31 15:31:23 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 |
#ping 192.168.16.1
bluetooth-applet gnome-volume-manager kthread sshd bonobo-activation-server gpm l3-agent sshd: clock-applet hald mapping-daemon su cron hald-addon-acpi: metacity syslogd cupsd hald-addon-keyboard: mixer_applet2 udevd dbus-daemon hald-addon-storage: nautilus update-notifier dbus-launch hald-runner NetworkManager vino-session dhcdbd hpiod NetworkManagerDispatcher wireshark dictd inetd nm-applet wnck-applet exim4 init notification-area-applet X ... getty khelper ps xterm gnome-cups-icon khubd python [root@linux1:~]# pkill -9 wireshark PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data. 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.375 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.236 ms 64 bytes from 192.168.16.1: icmp_seq=3 ttl=64 time=0.331 ms --- 192.168.16.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.236/0.314/0.375/0.058 ms |
#ssh -f -N -R 3300:192.168.16.2:110 192.168.16.1
PASS password +OK ^] telnet> q Connection closed. [root@linux3:~]# [root@linux3:~]# [root@linux3:~]# [root@linux3:~]# exit Connection to 192.168.16.3 closed. [root@linux1:~]# telnet 192.168.16.3 3300 [root@linux1:~]# ssh 192.168.16.2 Enter passphrase for key '/root/.ssh/id_rsa': Last login: Thu May 31 15:59:37 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=2652; pidfile=/root/.lilalo/l3-agent.pid |
#telnet 192.168.16.1 3300
^] telnet> q Connection closed. [root@linux3:~]# [root@linux3:~]# [root@linux3:~]# [root@linux3:~]# exit Connection to 192.168.16.3 closed. [root@linux1:~]# telnet 192.168.16.3 3300 [root@linux1:~]# ssh 192.168.16.2 Enter passphrase for key '/root/.ssh/id_rsa': Last login: Thu May 31 15:59:37 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=2652; pidfile=/root/.lilalo/l3-agent.pid Trying 192.168.16.1... telnet: Unable to connect to remote host: Connection refused |
#ssh 192
PASS password +OK ^] telnet> q Connection closed. [root@linux3:~]# [root@linux3:~]# [root@linux3:~]# [root@linux3:~]# exit Connection to 192.168.16.3 closed. [root@linux1:~]# telnet 192.168.16.3 3300 [root@linux1:~]# ssh 192.168.16.2 Enter passphrase for key '/root/.ssh/id_rsa': Last login: Thu May 31 15:59:37 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=2652; pidfile=/root/.lilalo/l3-agent.pid |
Время первой команды журнала | 12:05:36 2007- 5-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:05:29 2007- 5-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 36.63 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.77 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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