/l3/users/eb/2009/linux12/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 |
|
#test
|
#test date
|
#exit
exit Connection to 192.168.15.11 closed. |
#exit
exit Connection to 192.168.15.1 closed. |
#ssh 192.168.15.11
root@192.168.15.11's password: Permission denied, please try again. root@192.168.15.11's password: Linux linux11 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:03:39 2009 from linux5.unix.nt l3-agent is already running: pid=4673; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.11 closed. |
#ssh 192.168.15.11
root@192.168.15.11's password: Permission denied, please try again. root@192.168.15.11's password: Permission denied, please try again. root@192.168.15.11's password: Permission denied (publickey,password). |
#ssh-key
ssh-keygen ssh-keyscan |
#ssh-keygen -R 192.168.15.11
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#ssh-keyscan -H 192.168.15.11 >> ~/.ssh/known_hosts
# 192.168.15.11 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#exit
exit Connection to 192.168.15.11 closed. |
#cd ..
|
#ls
+%I:%M LANG=uk_UA.UTF-8 |
#ls -la
загалом 128 drwxr-xr-x 9 root root 4096 чер 3 10:47 . drwxr-xr-x 20 root root 4096 чер 1 11:31 .. -rw------- 1 root root 12075 чер 3 11:03 .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 drwx------ 3 root root 4096 тра 29 17:49 .config drwx------ 2 root root 4096 тра 29 11:25 .gnupg drwxr-xr-x 5 root root 4096 тра 29 10:09 .gqview -rw-r--r-- 1 root root 0 чер 3 10:47 .hushlogin ... drwxr-xr-x 2 root root 36864 чер 3 11:09 .lilalo drwx------ 2 root root 4096 тра 27 17:03 .mcabber -rw-r--r-- 1 root root 140 лис 19 2007 .profile -rw------- 1 root root 218 тра 29 17:53 .recently-used.xbel -rw-r--r-- 1 root root 3984 тра 25 17:25 .screenrc -rw------- 1 root root 33 тра 27 10:40 .sendxmpprc drwxr-xr-x 2 root root 4096 чер 3 11:07 .ssh drwxr-xr-x 2 root root 4096 чер 2 13:38 .vim -rw------- 1 root root 9612 чер 2 18:48 .viminfo -rw-r--r-- 1 root root 52 тра 25 16:46 .vimrc |
#vim test
--- /dev/null 2009-06-03 09:23:49.506236171 +0300 +++ test 2009-06-03 11:10:28.000000000 +0300 @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in 192.168.15.{1..7} 192.168.15.{9..16} +do + ssh $i "$@" | sed "s/^/$i: /" +done + |
#chmod +x te
chmod: не вдається отримати доступ до `te': No such file or directory |
#chmod +x test
|
#test date
|
#test date
|
#vim test
|
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
|
#test 'locale'
|
#test "locale"
|
#vim test
--- /tmp/l3-saved-4087.11967.3318 2009-06-03 11:11:58.000000000 +0300 +++ test 2009-06-03 11:16:41.000000000 +0300 @@ -1,6 +1,5 @@ #!/bin/sh - -for i in 192.168.15.{1..7} 192.168.15.{9..16} +for i in 192.168.15.{1..7,9..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#test locale
|
#mv test all
|
#ls -la all
-rwxr-xr-x 1 root root 83 чер 3 11:16 all |
#cp all /bin
|
#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 /bin/all
--- /tmp/l3-saved-4087.24656.7118 2009-06-03 11:18:58.000000000 +0300 +++ /bin/all 2009-06-03 11:19:27.000000000 +0300 @@ -1,6 +1,7 @@ #!/bin/sh -for i in 192.168.15.{1..7,9..16} + +for i in 192.168.15.{1..7, 9..16} do - ssh $i "$@" | sed "s/^/$i: /" +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 9..16}: Name or service not known |
#vim /bin/all
--- /tmp/l3-saved-4087.9298.1427 2009-06-03 11:19:34.000000000 +0300 +++ /bin/all 2009-06-03 11:19:44.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..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 /bin/all
--- /tmp/l3-saved-4087.5073.16918 2009-06-03 11:20:01.000000000 +0300 +++ /bin/all 2009-06-03 11:20:30.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..7} 192.168.15.{9..16} do ssh $i "$@" | sed "s/^/$i: /" done |
#all date
192.168.15.1: Срд Июн 3 11:20:31 EEST 2009 root@192.168.15.2's password: 192.168.15.2: Срд Июн 3 08:20:37 UTC 2009 root@192.168.15.3's password: Permission denied, please try again. root@192.168.15.3's password: Permission denied, please try again. root@192.168.15.3's password: Permission denied (publickey,password). root@192.168.15.4's password: ... Permission denied, please try again. root@192.168.15.13's password: Permission denied (publickey,password). root@192.168.15.14's password: Permission denied, please try again. root@192.168.15.14's password: Permission denied, please try again. root@192.168.15.14's password: Permission denied (publickey,password). ^C |
#ssh 192.168.15.1
l3-agent is already running: pid=4276; pidfile=/root/.lilalo/l3-agent.pid |
#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 11:07:41 2009 from linux15.unix.nt l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.2 closed. |
#exit
exit Connection to 192.168.15.1 closed. |
#ssh 192.168.15.3
root@192.168.15.3's password: |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
cat ~/.ssh/id_dsa.pub | ssh 192.168.15.{1..16} 'cat >> ~/.ssh/authorized_keys' ~/.ssh/authorized_ssh-keyscan -H 192.168.15.{1..16} > ~/.ssh/known_hosts # 192.168.15.2 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.1 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.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.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.16 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh-keyscan -H 192.168.15.{1..16} > ~/.ssh/known_hosts ~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> cat ~/.ssh/id_dsa.pub | ssh 192.168.15.{1..16} 'cat >> ~/.ssh/authorized_keys' ~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> cat ~/.ssh/id_dsa.pub | ssh 192.168.15.1 'cat >> ~/.ssh/authorized_keys' ~/.ssh/authorized_ssh-keygen -R 192.168.15.{1..16} Too many arguments. usage: ssh-keygen [options] Options: -a trials Number of trials for screening DH-GEX moduli. ... -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. |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> ssh-keygen -R 192.168.15.{1..16} ~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> ssh-keyscan -H 192.168.15.{1..16} > ~/.ssh/known_hosts ~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> cat ~/.ssh/id_dsa.pub | ssh 192.168.15.{1..16} 'cat >> ~/.ssh/authorized_keys' ~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> ssh-keyscan -H 192.168.15.{1..16} > ~/.ssh/known_hosts ~/.ssh/authorized_ for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> cat ~/.ssh/id_dsa.pub | ssh 192.168.15.{1..16} 'cat >> ~/.ssh/authorized_keys' ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. |
#ssh-keygen -R 192.168.15.1
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#ssh-keygen -R 192.168.15.{1..16}
Too many arguments. usage: ssh-keygen [options] Options: -a trials Number of trials for screening DH-GEX moduli. -B Show bubblebabble digest of key file. -b bits Number of bits in the key to create. -C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to 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. |
#for i in 16; do ssh-keygen -R 192.168.15.$i; done
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#cat /root/.ssh/known_hosts
|1|d2Mfyapuv8yeKJnAqdsu3hkGcpg=|k8APBSPWmO8aBy12MalPN/ZYax4= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|MQKASlDWjQitRG1E4vhHuWHw9g8=|OUtU9c7UsyESXG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B3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |
#ssh 192.168.15.11
Linux linux11 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:09:23 2009 from linux12.unix.nt l3-agent is already running: pid=4673; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.11 closed. |
#ssh 192.168.15.10
root@192.168.15.10's password: Linux linux10 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. You have new mail. Last login: Wed Jun 3 11:03:37 2009 from linux5.unix.nt l3-agent is already running: pid=12892; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.10 closed. |
#for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh 192.168.15.11 ~/.ssh/authorized_ for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> cat /root/.ssh/known_hosts ~/.ssh/authorized_ for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> ~/.ssh/authorized_keys'; done root@192.168.15.16's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' |
#for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh 192.168.15.10 ~/.ssh/authorized_keys'; done 4 ssh: connect to host 192.168.15.4 port 22: Connection refused |
#ssh 192.168.15.2
root@192.168.15.2's password: Permission denied, please try again. root@192.168.15.2's password: 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:22:35 2009 from linux5.unix.nt l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh 192.168.15.4 ~/.ssh/authorized_ssh 192.168.15.2 root@192.168.15.2's password: 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:31:54 2009 from linux12.unix.nt l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid |
#for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh 192.168.15.10 ~/.ssh/authorized_keys'; done 7 root@192.168.15.7's password: Permission denied, please try again. root@192.168.15.7's password: Linux linux7 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:03:26 2009 from linux14.unix.nt l3-agent is already running: pid=3646; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.7 closed. |
#ssh 192.168.15.7
root@192.168.15.7's password: Permission denied, please try again. root@192.168.15.7's password: Permission denied, please try again. root@192.168.15.7's password: Permission denied (publickey,password). |
#for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh 192.168.15.10 ~/.ssh/authorized_ for i in 16; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >> { ..1 } ~/.ssh/authorized_keys' ; done bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' root@192.168.15.2's password: Permission denied, please try again. root@192.168.15.2's password: bash: -c: line 0: syntax error near unexpected token `newline' ... root@192.168.15.13's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' root@192.168.15.14's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' ssh_exchange_identification: Connection closed by remote host root@192.168.15.16's password: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `cat >> ' |
#for i in {1..16}; do cat ~/.ssh/id_dsa.pub | ssh 192.168.15.$i 'cat >>
ssh 192.168.15.7 ~/.ssh/authorized_keys' ; done 2 root@192.168.15.2's password: Permission denied, please try again. root@192.168.15.2's password: Permission denied, please try again. root@192.168.15.2's password: Permission denied (publickey,password). |
#192.168.15.3
bash: 192.168.15.3: command not found |
#ssh 192.168.15.3
ssh: connect to host 192.168.15.3 port 22: Connection refused |
#ssh 192.168.15.5
root@192.168.15.5's password: Permission denied, please try again. root@192.168.15.5's password: Permission denied, please try again. root@192.168.15.5's password: Permission denied (publickey,password). |
#ssh-key
ssh-keygen ssh-keyscan |
#ssh-keygen -R 192.168.15.11
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#ssh-keygen -p -f ~/.ssh/id_dsa
Key has comment '/root/.ssh/id_dsa' Enter new passphrase (empty for no passphrase): Enter same passphrase again: Pass phrases do not match. Try again. |
#ssh-keygen -p -f ~/.ssh/id_dsa
Key has comment '/root/.ssh/id_dsa' Enter new passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved with the new passphrase. |
#eval `ssh
`ssh `ssh-add `ssh-agent `ssh-argv0 `ssh-copy-id `sshd `ssh-keygen `ssh-keyscan `ssh-vulnkey |
#eval `ssh-agent`
Agent pid 26385 |
#ssh-add
Enter passphrase for /root/.ssh/id_dsa: Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) |
#ssh 192.168.15.11
The authenticity of host '192.168.15.11 (192.168.15.11)' 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)? yes Warning: Permanently added '192.168.15.11' (RSA) to the list of known hosts. Linux linux11 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:31:53 2009 from linux2.unix.nt l3-agent is already running: pid=4673; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.11 closed. |
#ssh 192.168.15.11
Linux linux11 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:43:03 2009 from linux12.unix.nt l3-agent is already running: pid=4673; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.15.11 closed. |
#ps aux | grep ssh-age
user 3387 0.0 0.0 4888 624 ? Ss 09:24 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager root 26385 0.0 0.0 4888 960 ? Ss 11:42 0:00 ssh-agent root 26436 0.0 0.0 5144 800 pts/10 S+ 11:44 0:00 grep ssh-age |
#ps aux | grep ssh-agent
user 3387 0.0 0.0 4888 624 ? Ss 09:24 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager root 26385 0.0 0.0 4888 960 ? Ss 11:42 0:00 ssh-agent root 26445 0.0 0.0 5144 800 pts/10 S+ 11:44 0:00 grep ssh-agent |
#ps aux | grep ssh-agent
user 3387 0.0 0.0 4888 624 ? Ss 09:24 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager root 26385 0.0 0.0 4888 960 ? Ss 11:42 0:00 ssh-agent root 26471 0.0 0.0 5144 800 pts/10 S+ 11:45 0:00 grep ssh-agent |
#ssh-add -l
1024 cb:8b:f2:e9:12:b3:63:43:0d:52:2d:b5:d8:3d:ad:85 /root/.ssh/id_dsa (DSA) |
#eval ` ssh-agent -k`
Agent pid 26385 killed |
#vim ~/.ssh/config
--- /dev/null 2009-06-03 09:23:49.506236171 +0300 +++ /root/.ssh/config 2009-06-03 11:52:52.000000000 +0300 @@ -0,0 +1,2 @@ + ForwardAgent yes + |
#vim /media/
|
#vim /media/\?\?\?\?\?\ \?\?\?/
|
#vim /media/\?\?\?\?\?\ \?\?\?/New\ Folder/New\ Empty\ File
|
#vim /media/\?\?\?\?\?\ \?\?\?/New\ Folder/New\ Empty\ File
|
#vim /media/\?\?\?\?\?\ \?\?\?/New\ Folder/New\ Empty\ File
|
#~
3 { 4 ssh-agent > ~/.ssh-agent 5 eval `< ~/.ssh-agent` 6 ssh-add 7 } 8 9 if [ -e ~/.ssh-agent ] 10 then 11 eval `cat ~/.ssh-agent` 12 grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/media/????? ???/New Folder/New Empty File" 19L, 254C записаний |
#vim ~/agent
--- /dev/null 2009-06-03 09:23:49.506236171 +0300 +++ /root/agent 2009-06-03 12:08:49.000000000 +0300 @@ -0,0 +1,19 @@ + +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 + |
#~/.
./ ../ .config/ .gnupg/ .gqview/ .lilalo/ .mcabber/ .ssh/ .vim/ |
#ls -la ~/
загалом 136 drwxr-xr-x 9 root root 4096 чер 3 12:08 . drwxr-xr-x 20 root root 4096 чер 1 11:31 .. -rw-r--r-- 1 root root 254 чер 3 12:08 agent -rwxr-xr-x 1 root root 83 чер 3 11:16 all -rw------- 1 root root 11998 чер 3 11:32 .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 drwx------ 3 root root 4096 тра 29 17:49 .config drwx------ 2 root root 4096 тра 29 11:25 .gnupg ... drwxr-xr-x 2 root root 36864 чер 3 12:09 .lilalo drwx------ 2 root root 4096 тра 27 17:03 .mcabber -rw-r--r-- 1 root root 140 лис 19 2007 .profile -rw------- 1 root root 218 тра 29 17:53 .recently-used.xbel -rw-r--r-- 1 root root 3984 тра 25 17:25 .screenrc -rw------- 1 root root 33 тра 27 10:40 .sendxmpprc drwxr-xr-x 2 root root 4096 чер 3 11:52 .ssh drwxr-xr-x 2 root root 4096 чер 2 13:38 .vim -rw------- 1 root root 10000 чер 3 12:08 .viminfo -rw-r--r-- 1 root root 52 тра 25 16:46 .vimrc |
#vim ~/.bash_profile
--- /tmp/l3-saved-4087.5597.10540 2009-06-03 12:09:38.000000000 +0300 +++ /root/.bash_profile 2009-06-03 12:09:49.000000000 +0300 @@ -1,2 +1,3 @@ l3-agent +agent . ~/.bashrc |
#chmod +x agent
|
#./agent
Agent pid 28756 Enter passphrase for /root/.ssh/id_dsa: Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid |
#./agent
Agent pid 28756 Agent pid 28776 Enter passphrase for /root/.ssh/id_dsa: Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid |
#./agent
Agent pid 28776 Agent pid 28798 Enter passphrase for /root/.ssh/id_dsa: l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid |
#cat ./agent
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 |
#grep ssh-agent /proc/$SSH_AGENT_PID/cmdline ; echo
Двійковий файл /proc/27048/cmdline містить збіжність |
#cat ./agent
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 |
#./agent
Agent pid 28798 Agent pid 28907 Enter passphrase for /root/.ssh/id_dsa: l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid |
#vim ~/.bash_profile
|
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
{ 6 ssh-add 7 } } 8 9 if [ -e ~/.ssh-agent ] 10 then q ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent 11 eval `cat ~/.ssh-agent` 12 grep -qx ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent 13 else ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "./agent" 19L, 253C записаний |
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
|1|d2Mfyapuv8yeKJnAqdsu3hkGcpg=|k8APBSPWmO8aBy12MalPN/ZYax4= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|MQKASlDWjQitRG1E4vhHuWHw9g8=|OUtU9c7UsyESXGMjtIf26xq6PIo= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzk6/s7Szz7FgoQ8bLWn5XYLTXXQTiVnPRUYNcVkOoir0Fc3jKIXeYuUOeFXVNCLx0UZbG9QsXh3CEE5QTkmEyw9Vu4a5r+7QhfQXtynRlnAyZIg+YEd7GJaqZB88Ycqiy32VcLLGkUIieRBEMXZCw9lAbqGGLLMRsOpmg+Eq2LOspDA8UdblSlDmcrTuliX1Nk2qeOhPjDBcCMOyB+tKiIYc93sjC2dtdzkkBOCCz/nni7hqxJnKXLYR9UyL47uw72tSlp4UqtRTWCcNeF9SxziV72T84sOSeBnXLvDHcVYOpwc |1|wiiAQ1OFnD4uVHWa6oHm6SNOV1o=|69PchxjcCHwYdpjH4BSr96JqEwE= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbv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oUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|YNj3DzYSkeHORHCL4zfH8qMLQTM=|FMFDabQB5auOvC/12J2ymUFcaRw= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|Hk9TJJIhzMHAowwiCD4nREa3/cI=|NnWz2hUV1oss9RymncGppb+WIgg= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF
Время первой команды журнала | 11:05:32 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:14:40 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 22.77 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.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