/l3/users/eb/2009/linux13/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 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 |
|
#vim ~/.ssh/config
--- /dev/null 2009-06-03 09:19:57.504195778 +0300 +++ /root/.ssh/config 2009-06-03 10:14:29.000000000 +0300 @@ -0,0 +1,3 @@ +HOST * + VisualHostKey Yes + |
#vim ~/.ssh/config
--- /tmp/l3-saved-3760.4622.13860 2009-06-03 10:14:35.000000000 +0300 +++ /root/.ssh/config 2009-06-03 10:14:45.000000000 +0300 @@ -1,3 +1,3 @@ HOST * - VisualHostKey Yes + VisualHostKey yes |
#ssh 192.168.15.13
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. +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Are you sure you want to continue connecting (yes/no)? no Host key verification failed. |
#ssh-keyscan 192.168.15.14
# 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 192.168.15.14 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== |
#ssh-keyscan 192.168.15.14 >> ~/.ssh/known_hosts
# 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#ssh 192.168.15.14
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Jun 2 17:26:55 2009 from linux15.unix.nt Removing stale pidfile |
#ssh-keyscan 192.168.15.{1..16} >> ~/.ssh/known_hosts
# 192.168.15.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.1 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.2 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.3 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.4 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.5 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.6 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.7 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.8 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.9 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.10 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.11 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.12 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.15 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.16 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#exit
exit Connection to 192.168.15.14 closed. |
#cat ~/.ssh/known_hosts
192.168.15.14 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.13 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2gAvjn0otWcrbu1QzGfqvMXCxewmO31+5l5XtpB3aE5IbryA7hB9LryLpKRZ21/N/tOqB9WOyqWN2pOTuk1uA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XgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.5 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.6 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqY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WbE= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |
#cat ~/.ssh/known_hosts
ssh 192.168.15.16 Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.16's password: |
#cat ~/.ssh/known_hosts
|
#cat ~/.ssh/known_hosts
> ~/.ssh/known_hosts |
$exit
exit |
#cat ~/.ssh/known_hosts
|1|4nvmL6Np3Z4aCksCNt+AkzG14FI=|CuSNBCw7Xbmio4p2tB1KsCqOP2c= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|VestT0dpPHOCnARujafsJWNzWz8=|rzPW7J1JeGUmxfyhLmIU7pL++VQ= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQE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SkUVNwNK/WG41+Z6rvjU8=|18jL9LzPTtYMQUK8dOV5TZDRv3Q= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |
#ssh-keygen -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): /root/.ssh/id_dsa 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_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 33:eb:42:3d:99:79:79:1b:b0:a0:b5:92:76:5a:24:b1 root@linux13 ... | | | . | | o | | E + . | | BS* + | | * X++ o | | o =.o . o | | o. . | | .. | +-----------------+ |
#ls /root/.ssh/id_dsa
/root/.ssh/id_dsa |
#ls -l /root/.ssh
total 28 -rw-r--r-- 1 root root 609 2009-05-25 02:42 authorized_keys -rw-r--r-- 1 root root 27 2009-06-03 10:14 config -rw------- 1 root root 668 2009-06-03 10:37 id_dsa -rw-r--r-- 1 root root 602 2009-06-03 10:37 id_dsa.pub -rw------- 1 root root 7072 2009-06-03 10:31 known_hosts -rw-r--r-- 1 root root 442 2009-06-03 10:10 known_hosts.old |
#ls -l /root/.ssh
|
#cat ~/.ssh/known_hosts
|
#cat ~/.ssh/known_hosts
2 3 ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ ".ssh/config" 3L, 28C written |
#for i in {1..16}; do ssh 192.168.15.$i date; done
Срд Июн 3 10:47:59 EEST 2009 Срд Июн 3 10:46:41 UTC 2009 Wed Jun 3 10:47:57 EEST 2009 Wed Jun 3 10:47:59 EEST 2009 Срд Июн 3 10:47:59 EEST 2009 root@192.168.15.6's password: Срд Июн 3 10:48:01 EEST 2009 root@192.168.15.8's password: Срд Июн 3 10:48:02 EEST 2009 Срд Июн 3 10:48:04 EEST 2009 Срд Июн 3 10:48:03 EEST 2009 середа, 3 червня 2009 10:48:03 +0300 Wed Jun 3 10:48:04 EEST 2009 Срд Июн 3 10:48:11 EEST 2009 ssh_exchange_identification: Connection closed by remote host Срд Июн 3 10:48:09 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: Tue Jun 2 14:46:22 2009 from linux14.unix.nt |
#ls
1 ip_forward~ ip_forwarz~ passswd1 screen.png 11 ip_forwarw~ iptables-save samba.dot shtdown file ip_forwarx~ lv-table samba.png usaddscript harddisk.img ip_forwary~ passswd screen.dot vol1 |
#vim scriptall
--- /dev/null 2009-06-03 09:19:57.504195778 +0300 +++ scriptall 2009-06-03 10:59:14.000000000 +0300 @@ -0,0 +1,5 @@ +#!bin/sh +for i in 192.168.15.{1..16} +do + ssh $i "$@" | sed "s/^/$i: " +done |
#script
script scriptreplay |
#script
script scriptreplay |
#scriptls
bash: scriptls: command not found |
#ls
1 ip_forward~ ip_forwarz~ passswd1 screen.png vol1 11 ip_forwarw~ iptables-save samba.dot scriptall file ip_forwarx~ lv-table samba.png shtdown harddisk.img ip_forwary~ passswd screen.dot usaddscript |
#scriptall date
bash: scriptall: command not found |
#./scriptall date
bash: ./scriptall: Permission denied |
#chmod +x scr
screen.dot screen.png scriptall |
#chmod +x scriptall
|
#./scriptall date
bash: ./scriptall: bin/sh: bad interpreter: No such file or directory |
#vim scriptall
--- /tmp/l3-saved-3760.640.21725 2009-06-03 11:01:08.000000000 +0300 +++ scriptall 2009-06-03 11:01:14.000000000 +0300 @@ -1,4 +1,4 @@ -#!bin/sh +#!/bin/sh for i in 192.168.15.{1..16} do ssh $i "$@" | sed "s/^/$i: " |
#./scriptall date
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command root@192.168.15.6's password: |
#vim scriptall
|
#~
bash: scriptall: command not found |
#ls
1 ip_forward~ ip_forwarz~ passswd1 screen.png vol1 11 ip_forwarw~ iptables-save samba.dot scriptall file ip_forwarx~ lv-table samba.png shtdown harddisk.img ip_forwary~ passswd screen.dot usaddscript |
#ls -l
total 1016 -rw-r--r-- 1 root root 556 2009-06-02 17:15 1 drwxr-x--- 2 root root 4096 2009-05-30 16:35 11 -rw-r----- 1 root root 0 2009-05-30 16:33 file -rw-r--r-- 1 root root 204800 2009-05-30 14:17 harddisk.img -rw-r--r-- 1 root root 2 2009-06-01 16:31 ip_forward~ -rw-r--r-- 1 root root 2 2009-06-01 16:32 ip_forwarw~ -rw-r--r-- 1 root root 2 2009-06-01 16:32 ip_forwarx~ -rw-r--r-- 1 root root 2 2009-06-01 16:31 ip_forwary~ -rw-r--r-- 1 root root 2 2009-06-01 16:31 ip_forwarz~ ... -rw-r--r-- 1 root root 2881 2009-05-28 14:27 passswd -rw-r--r-- 1 root root 2881 2009-05-28 14:39 passswd1 -rw-r--r-- 1 root root 11840 2009-05-29 10:09 samba.dot -rw-r--r-- 1 root root 470854 2009-05-29 10:09 samba.png -rw-r--r-- 1 root root 4737 2009-05-29 10:05 screen.dot -rw-r--r-- 1 root root 271894 2009-05-29 10:06 screen.png -rwxr-xr-x 1 root root 76 2009-06-03 11:01 scriptall -rwxr-xr-x 1 root root 231 2009-05-29 17:29 shtdown -rwxr-xr-x 1 root root 502 2009-05-29 09:30 usaddscript drwxr-xr-x 2 root root 4096 2009-05-30 18:15 vol1 |
#./scriptall date
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command root@192.168.15.6's password: |
#vim scriptall
--- /tmp/l3-saved-3760.7055.16925 2009-06-03 11:02:33.000000000 +0300 +++ scriptall 2009-06-03 11:03:33.000000000 +0300 @@ -1,5 +1,5 @@ #!/bin/sh -for i in 192.168.15.{1..16} +for i in 192.168.15.{1..7} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: " done |
#./scriptall date
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command root@192.168.15.6's password: |
#vim scriptall
--- /tmp/l3-saved-3760.22302.5137 2009-06-03 11:03:47.000000000 +0300 +++ scriptall 2009-06-03 11:04:16.000000000 +0300 @@ -1,5 +1,5 @@ #!/bin/sh -for i in 192.168.15.{1..7} 192.168.15.{9..16} +for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: " done |
#./scriptall date
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command ssh_exchange_identification: Connection closed by remote host sed: -e expression #1, char 19: unterminated `s' command |
#vim scriptall
|
#~
bash: scriptall: command not found |
#cp scriptall ~/bin/
cp: cannot create regular file `/root/bin/': Is a directory |
#PATH=$PATH:~
|
#scriptall date
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command ssh_exchange_identification: Connection closed by remote host sed: -e expression #1, char 19: unterminated `s' command |
#vim scriptall
|
#~
sed: -e expression #1, char 8: unterminated `s' command |
#ssh 192.168.15.14 date
Срд Июн 3 11:08:05 EEST 2009 |
#vim scriptall
--- /tmp/l3-saved-3760.13021.6789 2009-06-03 11:08:50.000000000 +0300 +++ scriptall 2009-06-03 11:10:09.000000000 +0300 @@ -1,5 +1,5 @@ #!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do - ssh $i "$@" | sed "s/^/"$i": " + ssh $i "$@" | sed "s/^/$i: " done |
#echop $PATH
bash: echop: command not found |
#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root |
#vim scriptall
|
#~
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command ssh_exchange_identification: Connection closed by remote host sed: -e expression #1, char 19: unterminated `s' command |
#vim scriptall
|
#~
total 1020 -rw-r--r-- 1 root root 556 2009-06-02 17:15 1 drwxr-x--- 2 root root 4096 2009-05-30 16:35 11 -rwxr-xr-x 1 root root 85 2009-06-03 11:16 all -rw-r----- 1 root root 0 2009-05-30 16:33 file -rw-r--r-- 1 root root 204800 2009-05-30 14:17 harddisk.img -rw-r--r-- 1 root root 2 2009-06-01 16:31 ip_forward~ -rw-r--r-- 1 root root 2 2009-06-01 16:32 ip_forwarw~ -rw-r--r-- 1 root root 2 2009-06-01 16:32 ip_forwarx~ -rw-r--r-- 1 root root 2 2009-06-01 16:31 ip_forwary~ ... -rw-r--r-- 1 root root 2881 2009-05-28 14:27 passswd -rw-r--r-- 1 root root 2881 2009-05-28 14:39 passswd1 -rw-r--r-- 1 root root 11840 2009-05-29 10:09 samba.dot -rw-r--r-- 1 root root 470854 2009-05-29 10:09 samba.png -rw-r--r-- 1 root root 4737 2009-05-29 10:05 screen.dot -rw-r--r-- 1 root root 271894 2009-05-29 10:06 screen.png -rwxr-xr-x 1 root root 94 2009-06-03 11:10 scriptall -rwxr-xr-x 1 root root 231 2009-05-29 17:29 shtdown -rwxr-xr-x 1 root root 502 2009-05-29 09:30 usaddscript drwxr-xr-x 2 root root 4096 2009-05-30 18:15 vol1 |
#cat all
#!/bin/sh for i in 192.168.15.{1..7,9..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#all date
ssh: Could not resolve hostname 192.168.15.1..7: Name or service not known ssh: Could not resolve hostname 192.168.15.9..16: Name or service not known |
#vim all
--- /tmp/l3-saved-3760.4952.31671 2009-06-03 11:16:27.000000000 +0300 +++ all 2009-06-03 11:16:49.000000000 +0300 @@ -1,6 +1,6 @@ #!/bin/sh -for i in 192.168.15.{1..7,9..16} +for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#all date
192.168.15.1: Срд Июн 3 11:16:51 EEST 2009 192.168.15.2: Срд Июн 3 08:16:51 UTC 2009 192.168.15.3: Wed Jun 3 11:16:51 EEST 2009 192.168.15.4: Wed Jun 3 11:16:51 EEST 2009 192.168.15.5: Срд Июн 3 11:16:51 EEST 2009 192.168.15.9: Срд Июн 3 11:16:51 EEST 2009 192.168.15.10: Срд Июн 3 11:16:51 EEST 2009 192.168.15.11: Срд Июн 3 11:16:51 EEST 2009 192.168.15.12: середа, 3 червня 2009 11:16:52 +0300 192.168.15.13: Wed Jun 3 11:16:52 EEST 2009 192.168.15.14: Срд Июн 3 11:16:53 EEST 2009 ssh_exchange_identification: Connection closed by remote host 192.168.15.16: Срд Июн 3 11:16:58 EEST 2009 |
#cat all
#!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#cat scriptall
#!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: " done |
#scriptall date
sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 18: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command sed: -e expression #1, char 19: unterminated `s' command ssh_exchange_identification: Connection closed by remote host sed: -e expression #1, char 19: unterminated `s' command |
#cat all
#!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#cat scriptall
#!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: " done |
#vim all
|
#~
2 for i in 192.168.15.{1..5} 192.168.15.{9..16} /" 3 do ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "scriptall" 5L, 95C written |
#scriptall date
192.168.15.1: Срд Июн 3 11:18:05 EEST 2009 192.168.15.2: Срд Июн 3 08:18:05 UTC 2009 192.168.15.3: Wed Jun 3 11:18:05 EEST 2009 192.168.15.4: Wed Jun 3 11:18:05 EEST 2009 192.168.15.5: Срд Июн 3 11:18:05 EEST 2009 192.168.15.9: Срд Июн 3 11:18:05 EEST 2009 192.168.15.10: Срд Июн 3 11:18:06 EEST 2009 192.168.15.11: Срд Июн 3 11:18:06 EEST 2009 192.168.15.12: середа, 3 червня 2009 11:18:06 +0300 192.168.15.13: Wed Jun 3 11:18:06 EEST 2009 192.168.15.14: Срд Июн 3 11:18:06 EEST 2009 ssh_exchange_identification: Connection closed by remote host 192.168.15.16: Срд Июн 3 11:18:11 EEST 2009 |
#man ssh|less
|
#ssh-keygen -pf ~/.ssh/id_dsa
Key has comment '/root/.ssh/id_dsa' Enter new passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved with the new passphrase. |
#ssh 192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa': 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 11:35:36 2009 from linux5.unix.nt l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#eval `ssh-agent`
Agent pid 8711 |
#ssh-add
Enter passphrase for /root/.ssh/id_dsa: Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) |
#ssh 192.168.15.3
ssh: connect to host 192.168.15.3 port 22: Connection refused |
#ssh 192.168.15.4
ssh: connect to host 192.168.15.4 port 22: Connection refused |
#ssh 192.168.15.1
l3-agent is already running: pid=4276; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.1 closed. |
#ssh 192.168.15.5
Linux linux5 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:37:19 2009 from linux14.unix.nt l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.5 closed. |
#echo $SSH_AUTH_SOCK
/tmp/ssh-vwtCAL8710/agent.8710 |
#ps aux | grep ssh-agent
root 8711 0.0 0.0 4912 936 ? Ss 11:41 0:00 ssh-agent root 8809 0.0 0.0 3952 744 pts/0 S+ 11:43 0:00 grep ssh-agent |
#echo $SSH_AGENT_PID
8711 |
#ssh-add -l
1024 33:eb:42:3d:99:79:79:1b:b0:a0:b5:92:76:5a:24:b1 /root/.ssh/id_dsa (DSA) |
#ssh-agent -k
unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 8711 killed; |
#eval `ssh-agent -k`
kill: No such process |
#eval `ssh-agent`
Agent pid 9081 |
#ssh 192.168.15.6
root@192.168.15.6's password: Permission denied, please try again. root@192.168.15.6's password: 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 11:51:39 2009 from 10.0.35.100 l3-agent is already running: pid=24940; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.15.14
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.14's password: Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:51:51 2009 from linux6.unix.nt l3-agent is already running: pid=30256; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.14 closed. |
#exit
exit Connection to 192.168.15.6 closed. |
#eval `ssh-agent -k`
Agent pid 9081 killed |
#cat ~/.ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-PgrXWA9172/agent.9172; export SSH_AUTH_SOCK; SSH_AGENT_PID=9173; export SSH_AGENT_PID; echo Agent pid 9173; |
#vim /root/.bash
|
#vim /root/.bash
|
#vim /root/.bash_profile
--- /tmp/l3-saved-3760.30662.21930 2009-06-03 12:05:31.000000000 +0300 +++ /root/.bash_profile 2009-06-03 12:09:24.000000000 +0300 @@ -1,2 +1,17 @@ +load_agent() +{ + ssh-agent > ~/.ssh-agent + eval < ~/.ssh-agent + ssh-add +} + +if [ -e ~/.ssh-agent ] +then + eval `cat ~/.ssh-agent` + grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load-agent +else + load_agent +fi + l3-agent . ~/.bashrc |
#vim /root/.bash_profile
--- /tmp/l3-saved-9489.15302.29311 2009-06-03 12:10:33.000000000 +0300 +++ /root/.bash_profile 2009-06-03 12:10:42.000000000 +0300 @@ -8,7 +8,7 @@ if [ -e ~/.ssh-agent ] then eval `cat ~/.ssh-agent` - grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load-agent + grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent else load_agent fi |
#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 12:09:43 2009 from linux1.unix.nt l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: /" done
#!/bin/sh for i in 192.168.15.{1..5} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: " done
SSH_AUTH_SOCK=/tmp/ssh-PgrXWA9172/agent.9172; export SSH_AUTH_SOCK; SSH_AGENT_PID=9173; export SSH_AGENT_PID; echo Agent pid 9173;
2 3 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ".ssh/config" 3L, 28C written
Время первой команды журнала | 10:10:50 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:10:54 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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