/l3/users/eb/2009/linux5/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 |
|
#less networks
|
#man xarcs
|
#man xargs
|
#ls -l /etc/ssh
итого 152 -rw-r--r-- 1 root root 125749 Май 4 23:39 moduli -rw-r--r-- 1 root root 1595 Май 4 23:39 ssh_config -rw-r--r-- 1 root root 1874 Май 24 13:23 sshd_config -rw------- 1 root root 668 Май 24 13:23 ssh_host_dsa_key -rw-r--r-- 1 root root 599 Май 24 13:23 ssh_host_dsa_key.pub -rw------- 1 root root 1675 Май 24 13:23 ssh_host_rsa_key -rw-r--r-- 1 root root 391 Май 24 13:23 ssh_host_rsa_key.pub |
#ping mail.ru
PING mail.ru (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.164 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.158 ms 64 bytes from 10.0.35.1: icmp_seq=3 ttl=63 time=0.156 ms 64 bytes from 10.0.35.1: icmp_seq=4 ttl=63 time=0.153 ms 64 bytes from 10.0.35.1: icmp_seq=5 ttl=63 time=0.152 ms 64 bytes from 10.0.35.1: icmp_seq=6 ttl=63 time=0.157 ms 64 bytes from 10.0.35.1: icmp_seq=7 ttl=63 time=0.154 ms 64 bytes from 10.0.35.1: icmp_seq=8 ttl=63 time=0.154 ms ^C --- mail.ru ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 6999ms rtt min/avg/max/mdev = 0.152/0.156/0.164/0.003 ms |
#cat ~/.ssh/known_hosts
|1|rH2eKtpoqkm3H/HaXRCVdhrXN08=|sneV+8S8U6x7XA4g0ASpY/62jrg= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2MKci5Bhj9AzgVtUDRapesSxLzafVqE/0Zb9Yd3hVnYSA8SAZ5V635nHjOZyGr/3twLQDX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K4ZVyk1IXBVKAgltZRjVfJpizNF |1|5We2vBnXFiNetnXy6RXUQEQAMWo=|77zI9+5MYT0sEP6OpAy9KkV8yoc= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|yzXzfzkMfKoEbcTmOaNQnQ3No7Y=|HhZ/DebmWrfCMEBwG5TcHee6Trg= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |
#cd /home/user
|
#ls
Desktop Documents Download e1000e-0.5.18.3 lv-table Music pas Pictures Public Templates Videos work |
#cd .ssh/
|
#ls
known_hosts |
#ls -la
итого 12 drwx------ 2 user user 4096 Май 25 11:17 . drwxr-xr-x 26 user user 4096 Июн 3 09:27 .. -rw-r--r-- 1 user user 1326 Май 27 10:31 known_hosts |
#less /etc/ssh/ssh_config
|
#vi /less /etc/ssh/ssh_config
|
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be changed in per-user configuration files # or on the command line. # Configuration data is parsed as follows: # 1. command line options # 2. user-specific file # 3. system-wide file # Any configuration value is only changed the first time it is set. # Thus, host-specific definitions should be at the beginning of the ... # Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes GSSAPIDelegateCredentials no |
#ssh-keygen -t dsa
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: 86:c9:7f:15:57:1c:5c:bd:77:7c:96:8d:83:e1:bf:bf root@linux5 The key's randomart image is: +--[ DSA 1024]----+ | .o*| | . oo| | ..o.o+| | . o ooooB| | + S .. o+| | o . . | | . . . | | . . | | Eo| +-----------------+ |
#ls -l ~/.ssh/
итого 16 -rw-r--r-- 1 root root 609 Ноя 19 2008 authorized_keys -rw------- 1 root root 668 Июн 3 10:38 id_dsa -rw-r--r-- 1 root root 601 Июн 3 10:38 id_dsa.pub -rw-r--r-- 1 root root 3536 Июн 2 17:03 known_hosts |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.2 'cat >> ~/.ssh/authorized_keys ;done
> |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.2 'cat >> ~/.ssh/authorized_keys ; done
> |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.2 'cat >> ~/.ssh/authorized_keys ; done
> > > |
#for i in {1..16} do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.2 'cat >> ~/.ssh/authorized_keys ; done
bash: syntax error near unexpected token `|' |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.2 'cat >> ~/.ssh/authorized_keys
$i done > |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.1 'cat >> ~/.ssh/authorized_keys
> |
#for i in 192.168.15.{1..16}
> do > ssh $i "$@" | sed "s/^/$i: /" > done @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is ... RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? ^C The authenticity of host '192.168.15.13 (192.168.15.13)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? ^C The authenticity of host '192.168.15.14 (192.168.15.14)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? ^C ^C ^C |
#ssh 192.168.15.3
Linux linux3 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 10:56:34 2009 from linux4.unix.nt l3-agent is already running: pid=3235; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.3 closed. |
#dfgdfg
192.168.15.3: bash: dfgdfg: command not found |
#exitq
192.168.15.3: bash: exitq: command not found |
#exit
192.168.15.3: exit Connection to 192.168.15.3 closed. 192.168.15.4: Linux linux4 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.4: 192.168.15.4: The programs included with the Debian GNU/Linux system are free software; 192.168.15.4: the exact distribution terms for each program are described in the 192.168.15.4: individual files in /usr/share/doc/*/copyright. 192.168.15.4: 192.168.15.4: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.4: permitted by applicable law. 192.168.15.4: Last login: Wed Jun 3 10:48:34 2009 from linux1.unix.nt 192.168.15.4: l3-agent is already running: pid=10859; pidfile=/root/.lilalo/l3-agent.pid |
#exit
192.168.15.4: exit Connection to 192.168.15.4 closed. 192.168.15.5: Linux linux5 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.5: 192.168.15.5: The programs included with the Debian GNU/Linux system are free software; 192.168.15.5: the exact distribution terms for each program are described in the 192.168.15.5: individual files in /usr/share/doc/*/copyright. 192.168.15.5: 192.168.15.5: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.5: permitted by applicable law. 192.168.15.5: Last login: Wed Jun 3 10:48:41 2009 from linux1.unix.nt 192.168.15.5: l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid |
#exit
192.168.15.5: exit Connection to 192.168.15.5 closed. 192.168.15.6: Linux linux6 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.6: 192.168.15.6: The programs included with the Debian GNU/Linux system are free software; 192.168.15.6: the exact distribution terms for each program are described in the 192.168.15.6: individual files in /usr/share/doc/*/copyright. 192.168.15.6: 192.168.15.6: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.6: permitted by applicable law. 192.168.15.6: Last login: Wed Jun 3 11:02:55 2009 from linux5.unix.nt 192.168.15.6: l3-agent is already running: pid=24940; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.15.6
Linux linux6 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 10:49:08 2009 l3-agent is already running: pid=24940; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.6 closed. |
#xclock
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed |
#exit
192.168.15.6: exit Connection to 192.168.15.6 closed. 192.168.15.7: Linux linux7 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.7: 192.168.15.7: The programs included with the Debian GNU/Linux system are free software; 192.168.15.7: the exact distribution terms for each program are described in the 192.168.15.7: individual files in /usr/share/doc/*/copyright. 192.168.15.7: 192.168.15.7: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.7: permitted by applicable law. 192.168.15.7: Last login: Wed Jun 3 10:48:51 2009 from linux1.unix.nt 192.168.15.7: l3-agent is already running: pid=3646; pidfile=/root/.lilalo/l3-agent.pid |
#exit
192.168.15.7: exit Connection to 192.168.15.7 closed. root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: Permission denied, please try again. root@192.168.15.8's password: Permission denied (publickey,password). 192.168.15.9: Linux linux9 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.9: 192.168.15.9: The programs included with the Debian GNU/Linux system are free software; 192.168.15.9: the exact distribution terms for each program are described in the 192.168.15.9: individual files in /usr/share/doc/*/copyright. 192.168.15.9: 192.168.15.9: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.9: permitted by applicable law. 192.168.15.9: Last login: Tue Jun 2 17:29:15 2009 |
#exit
192.168.15.9: exit Connection to 192.168.15.9 closed. 192.168.15.10: Linux linux10 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.10: 192.168.15.10: The programs included with the Debian GNU/Linux system are free software; 192.168.15.10: the exact distribution terms for each program are described in the 192.168.15.10: individual files in /usr/share/doc/*/copyright. 192.168.15.10: 192.168.15.10: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.10: permitted by applicable law. 192.168.15.10: You have new mail. 192.168.15.10: Last login: Tue Jun 2 16:42:26 2009 from 192.168.105.1 |
#exit
192.168.15.10: exit Connection to 192.168.15.10 closed. 192.168.15.11: Linux linux11 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.11: 192.168.15.11: The programs included with the Debian GNU/Linux system are free software; 192.168.15.11: the exact distribution terms for each program are described in the 192.168.15.11: individual files in /usr/share/doc/*/copyright. 192.168.15.11: 192.168.15.11: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.11: permitted by applicable law. 192.168.15.11: Last login: Wed Jun 3 11:03:21 2009 from linux1.unix.nt 192.168.15.11: l3-agent is already running: pid=4673; pidfile=/root/.lilalo/l3-agent.pid |
#exit
192.168.15.11: exit Connection to 192.168.15.11 closed. 192.168.15.12: l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid |
#exit
192.168.15.12: exit Connection to 192.168.15.12 closed. 192.168.15.13: Linux linux13 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.13: 192.168.15.13: The programs included with the Debian GNU/Linux system are free software; 192.168.15.13: the exact distribution terms for each program are described in the 192.168.15.13: individual files in /usr/share/doc/*/copyright. 192.168.15.13: 192.168.15.13: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.13: permitted by applicable law. 192.168.15.13: Last login: Wed Jun 3 10:10:48 2009 from 127.0.0.1 192.168.15.13: l3-agent is already running: pid=3728; pidfile=/root/.lilalo/l3-agent.pid |
#exit
192.168.15.13: exit Connection to 192.168.15.13 closed. 192.168.15.14: Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.14: 192.168.15.14: The programs included with the Debian GNU/Linux system are free software; 192.168.15.14: the exact distribution terms for each program are described in the 192.168.15.14: individual files in /usr/share/doc/*/copyright. 192.168.15.14: 192.168.15.14: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.14: permitted by applicable law. 192.168.15.14: Last login: Wed Jun 3 10:25:45 2009 from linux13.unix.nt 192.168.15.14: l3-agent is already running: pid=30256; pidfile=/root/.lilalo/l3-agent.pid 192.168.15.14: exit 192.168.15.14: 192.168.15.14: exit 192.168.15.14: |
#exit
192.168.15.14: exit Connection to 192.168.15.14 closed. xit ^C 192.168.15.16: Linux linux16 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 192.168.15.16: 192.168.15.16: The programs included with the Debian GNU/Linux system are free software; 192.168.15.16: the exact distribution terms for each program are described in the 192.168.15.16: individual files in /usr/share/doc/*/copyright. 192.168.15.16: 192.168.15.16: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 192.168.15.16: permitted by applicable law. 192.168.15.16: Last login: Wed Jun 3 10:30:45 2009 from linux15.unix.nt 192.168.15.16: l3-agent is already running: pid=14206; pidfile=/root/.lilalo/l3-agent.pid 192.168.15.16: ^Croot@linux16:~# exit 192.168.15.16: exit Connection to 192.168.15.16 closed. |
#for i in {1..16}; do ssh 192.168.15.$i date; done
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. ... root@192.168.15.8's password: Permission denied (publickey,password). Срд Июн 3 11:08:46 EEST 2009 Срд Июн 3 11:08:47 EEST 2009 Срд Июн 3 11:08:47 EEST 2009 середа, 3 червня 2009 11:08:47 +0300 Wed Jun 3 11:08:47 EEST 2009 Срд Июн 3 11:08:48 EEST 2009 ssh_exchange_identification: Connection closed by remote host Срд Июн 3 11:08:53 EEST 2009 |
#ssh 192.168.15.2
Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 08:21:06 2009 from linux1.unix.nt l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#screen
|
#apt-get install screen
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: screen обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 72 пакетов не обновлено. Необходимо скачать 0B/605kB архивов. После данной операции, объём занятого дискового пространства возрастёт на 1024kB. Выбор ранее не выбранного пакета screen. (Чтение базы данных ... на данный момент установлено 44303 файлов и каталогов.) Распаковывается пакет screen (из файла .../screen_4.0.3-13_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет screen (4.0.3-13) ... |
#screen -x
|
#vi /etc/ssh/ssh_config
--- /tmp/l3-saved-3878.5344.32713 2009-06-03 11:35:45.000000000 +0300 +++ /etc/ssh/ssh_config 2009-06-03 11:36:02.000000000 +0300 @@ -17,7 +17,7 @@ # ssh_config(5) man page. Host * - VisulHostKey yes + VisualHostKey yes # ForwardAgent no # ForwardX11 no # ForwardX11Trusted yes |
#vi /etc/ssh/ssh_config
|
#cd ~
|
#LS
bash: LS: команда не найдена |
#ls
a etc.iso flash screen.dot screen.png vimrc |
#cd ..
|
#ls
bin dev disk2.img flash initrd.img lib media opt root selinux sys usr vmlinuz boot disk1.img etc home less lost+found mnt proc sbin srv tmp var |
#cd ..
|
#ls
bin dev disk2.img flash initrd.img lib media opt root selinux sys usr vmlinuz boot disk1.img etc home less lost+found mnt proc sbin srv tmp var |
#ls -la
итого 207224 drwxr-xr-x 22 root root 4096 Июн 3 10:27 . drwxr-xr-x 22 root root 4096 Июн 3 10:27 .. -rw------- 1 root root 40 Ноя 19 2008 .bash_history drwxr-xr-x 2 root root 4096 Ноя 19 2008 bin drwxr-xr-x 3 root root 4096 Июн 1 10:05 boot drwxr-xr-x 18 root root 3460 Июн 3 09:31 dev -rw-r--r-- 1 root root 210763776 Июн 1 10:10 disk1.img -rw-r--r-- 1 root root 210763776 Июн 1 10:14 disk2.img drwxr-xr-x 91 root root 4096 Июн 3 09:21 etc ... drwxr-xr-x 7 root root 4096 Июн 3 11:54 root drwxr-xr-x 2 root root 4096 Июн 1 16:26 sbin drwxr-xr-x 2 root root 4096 Фев 21 16:55 selinux drwxr-xr-x 2 root root 4096 Май 24 13:15 srv -rw------- 1 root root 53248 Май 25 16:27 .swp drwxr-xr-x 12 root root 0 Июн 3 09:21 sys drwxrwxrwt 7 root root 4096 Июн 3 11:54 tmp drwxr-xr-x 11 root root 4096 Май 24 13:22 usr drwxr-xr-x 14 root root 4096 Июн 2 16:56 var lrwxrwxrwx 1 root root 25 Ноя 19 2008 vmlinuz -> boot/vmlinuz-2.6.29-2-686 |
#cd /home/user
|
#ls -la
итого 172 drwxr-xr-x 26 user user 4096 Июн 3 09:27 . drwxr-xr-x 10 root root 4096 Май 30 14:07 .. -rw------- 1 user user 729 Июн 2 18:55 .bash_history -rw-r--r-- 1 user user 220 Мар 1 11:31 .bash_logout -rw-r--r-- 1 user root 22 Май 26 10:40 .bash_profile -rw-r--r-- 1 user user 3159 Май 26 10:39 .bashrc drwx------ 4 user user 4096 Май 25 11:13 .cache drwxr-xr-x 6 user user 4096 Май 26 11:46 .config drwx------ 3 user user 4096 Май 25 09:43 .dbus ... -rw-r--r-- 1 user user 675 Мар 1 11:31 .profile drwxrwxrwx 7 666 user 4096 Май 26 15:06 Public -rw-r--r-- 1 root root 3984 Май 25 17:25 .screenrc drwx------ 2 user user 4096 Май 25 11:17 .ssh drwxr-xr-x 2 user user 4096 Май 25 09:43 Templates drwxr-xr-x 3 user user 4096 Май 27 14:02 .thumbnails drwxr-xr-x 2 user user 4096 Май 25 09:43 Videos drwxr-xr-x 11 root root 4096 Июн 2 09:43 work -rw------- 1 user user 117 Июн 3 09:27 .Xauthority -rw-r--r-- 1 user user 644 Июн 3 09:27 .xsession-errors |
#ls -la | more
|
#cd ~
|
#ls -la
итого 4344 drwxr-xr-x 7 root root 4096 Июн 3 11:54 . drwxr-xr-x 22 root root 4096 Июн 3 10:27 .. drwxr-xr-x 5 root root 4096 Май 26 10:38 a -rw------- 1 root root 10046 Июн 3 11:42 .bash_history -rw-r--r-- 1 root root 21 Май 25 09:34 .bash_profile -rw-r--r-- 1 root root 450 Май 25 09:34 .bashrc -rw-r--r-- 1 root root 4036608 Июн 1 10:21 etc.iso drwxr-xr-x 2 root root 4096 Май 30 12:51 flash drwx------ 2 root root 4096 Май 28 11:29 .john ... drwxr-xr-x 2 root root 36864 Июн 3 12:07 .lilalo -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile -rw-r--r-- 1 root root 4737 Май 29 10:05 screen.dot -rw-r--r-- 1 root root 271894 Май 29 10:06 screen.png -rw-r--r-- 1 root root 3984 Май 25 17:25 .screenrc -rw------- 1 root root 36 Май 27 15:21 .sendxmpprc drwxr-xr-x 2 root root 4096 Июн 3 10:47 .ssh -rw------- 1 root root 7976 Июн 3 11:54 .viminfo -rw-r--r-- 1 root root 51 Май 25 16:54 vimrc -rw-r--r-- 1 root root 51 Май 25 16:54 .vimrc |
#cat .bash_profile
l3-agent . ~/.bashrc |
#vi .bash_profile
|
# 3
SSH-KEYGEN(1) BSD General Commands Manual SSH-KEYGEN(1) NAME ssh-keygen - authentication key generation, management and conversion SYNOPSIS ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment] [-f output_keyfile] ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] ssh-keygen -i [-f input_keyfile] ssh-keygen -e [-f input_keyfile] ssh-keygen -y [-f input_keyfile] ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] ... DESCRIPTION ssh-keygen generates, manages and converts authentication keys for ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1 and RSA or DSA keys for use by SSH protocol version 2. The type of key to be generated is specified with the -t option. If invoked without any arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2 connections. ssh-keygen is also used to generate groups for use in Diffie-Hellman group exchange (DH-GEX). See the MODULI GENERATION section for details. Normally each user wishing to use SSH with RSA or DSA authentication runs this once to create the authentication key in ~/.ssh/identity, ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the system administrator may use this to generate host keys, as seen in /etc/rc. |
#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): 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: 23:e2:18:fa:d0:d9:c6:bc:4f:4b:ea:6f:bd:91:e7:e5 root@linux5 The key's randomart image is: +--[ RSA 2048]----+ | | | | | | | | | . . . S | | o O . . o | |o + * o.o . . | | o . =...+ o | | ..+++ ... E | +-----------------+ |
#ssh-keygen -help
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 RFC 4716 key file. -F hostname Find hostname in known hosts file. ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. |
#ssh -X 192.168.15.6
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux6 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 12:21:16 2009 from linux11.unix.nt /usr/bin/X11/xauth: creating new authority file /root/.Xauthority l3-agent is already running: pid=24940; pidfile=/root/.lilalo/l3-agent.pid |
#xcloc
bash: xcloc: команда не найдена |
#xclock
Error: Can't open display: localhost:10.0 |
#ldd `which ls`
linux-gate.so.1 => (0xb80d5000) librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb80c1000) libselinux.so.1 => /lib/libselinux.so.1 (0xb80a8000) libacl.so.1 => /lib/libacl.so.1 (0xb80a0000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7f40000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7f27000) /lib/ld-linux.so.2 (0xb80d6000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7f23000) libattr.so.1 => /lib/libattr.so.1 (0xb7f1e000) |
#ssh -X 192.168.15.2
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 12:16:41 2009 from linux1.unix.nt /usr/bin/X11/xauth: creating new authority file /root/.Xauthority l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#ssh -N -f -L 11000:192.168.15.1:110 192.168.15.2
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ |
#nc 127.0.0.1:11000
127.0.0.1:11000: forward host lookup failed: Unknown host |
#nc 127.0.0.1 11000
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <8821.1244023146@linux1.unix.nt> ls -ERR Unknown command: "ls". ^C |
#nc -l -p 110
^C |
#ssh -N -f -L 11000:192.168.15.1:110 192.168.15.4
ssh: connect to host 192.168.15.4 port 22: Connection refused |
#ssh -N -f -L 11000:192.168.15.1:110 192.168.15.2
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ bind: Address already in use channel_setup_fwd_listener: cannot listen to port: 11000 Could not request local forwarding. |
#nc 192.168.15.2
no port[s] to connect to |
#nc 192.168.15.2 110
(UNKNOWN) [192.168.15.2] 110 (pop3) : Connection refused |
#nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <9668.1244023816@linux1.unix.nt> >ls -ERR Unknown command: ">ls". >dir -ERR Unknown command: ">dir". >exit -ERR Unknown command: ">exit". quit +OK Pop server at linux1.unix.nt signing off. |
#man nc
|
#telnet 192.168.15.1 110
bash: telnet: команда не найдена |
#nc 127.0.0.1 11000
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <9912.1244024828@linux1.unix.nt> >-l -ERR Unknown command: ">-l". -e /etc/passwd -ERR Unknown command: "-e". ^C |
#telnet 192.168.15.2
bash: telnet: команда не найдена |
#apt-get install telnet
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: telnet обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 54 пакетов не обновлено. Необходимо скачать 65,8kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 147kB. Получено:1 http://10.0.35.1 sid/main telnet 0.17-36 [65,8kB] Получено 65,8kБ за 0s (2320kБ/c) Выбор ранее не выбранного пакета telnet. (Чтение базы данных ... на данный момент установлено 49029 файлов и каталогов.) Распаковывается пакет telnet (из файла .../telnet_0.17-36_i386.deb)... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для menu ... Настраивается пакет telnet (0.17-36) ... update-alternatives: используется `/usr/bin/telnet.netkit' для предоставления `/usr/bin/telnet' (telnet) в автоматический режим. Обрабатываются триггеры для menu ... |
#>
bash: syntax error near unexpected token `newline' |
#?
bash: a: команда не найдена |
#??
bash: ??: команда не найдена |
#>>
bash: syntax error near unexpected token `newline' |
#nc 192.168.15.2 110
(UNKNOWN) [192.168.15.2] 110 (pop3) : Connection refused |
#nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting. <9915.1244025188@linux1.unix.nt> ^C |
#ping od.eb.co.ua
ping: unknown host od.eb.co.ua |
#nc --help
nc: invalid option -- '-' nc -h for help |
#nc --?
nc: invalid option -- '-' nc -h for help |
l3-agent . ~/.bashrc
|1|rH2eKtpoqkm3H/HaXRCVdh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OB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|5We2vBnXFiNetnXy6RXUQEQAMWo=|77zI9+5MYT0sEP6OpAy9KkV8yoc= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|yzXzfzkMfKoEbcTmOaNQnQ3No7Y=|HhZ/DebmWrfCMEBwG5TcHee6Trg= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF
Время первой команды журнала | 09:53:29 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:35:12 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.46 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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