/l3/users/12-03-2007/nt-lnet/linux1.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
$ssh -X clint@192.168.16.15
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... Linux linux3 2.6.18-4-686 #1 SMP Wed Feb 21 16:06:54 UTC 2007 i686d0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in theused individual files in /usr/share/doc/*/copyright.0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentaux permitted by applicable law. Last login: Wed Mar 14 11:32:23 2007 from 192.168.16.15 l3-agent is already running: pid=6511; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh root@194.44.10.145 -p 33
# $IPTABLES -N bad_tcp_packets ns:~ # iptables -t nat ns:~ # iptables -t nat -A PREROUTING -s 212.40.51.74 -d 194.44.10.145 -p tcp -m tcp --dport 33 -j DNAT --t ns:~ # iptables -t nat-A PREROUTING -s 212.40.51.74 -d 194.44.10.145 -p tcp -m tcp --dport 33 -j DNAT --to ns:~ # iptables -t na-A PREROUTING -s 212.40.51.74 -d 194.44.10.145 -p tcp -m tcp --dport 33 -j DNAT --to- ns:~ # iptables -t n-A PREROUTING -s 212.40.51.74 -d 194.44.10.145 -p tcp -m tcp --dport 33 -j DNAT --to-d ns:~ # ns:~ # tination 10.2.10.2 PREROUTING -s 212.40.51.74 -d 194.44.10.145 -p tcp -m tcp --dport 33 -j DNAT --s ns:~ # iptables-save | grep " 22 "12.40.51.74 -d 194.44.10.145 -p tcp -m tcp --dport 33 -j DNAT --to-desti ... ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dp -j allowed ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dpo -j allowed ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dpor -j allowed ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dport -j allowed llowediptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dport -j al ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dport 3 -j allowed ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dport 33 -j allowed ns:~ # iptables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dport 338 -j allowed -j allowedables -A tcp_packets_forward -s 212.40.51.74 -d 10.0.0.0/255.0.0.0 -p tcp -m tcp --dport 3389 |
$ssh root@194.44.10.145 -p 33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 d9:4b:59:8b:45:01:63:28:d0:47:fe:e6:dc:3b:e7:90. Please contact your system administrator. Add correct host key in /home/user/.ssh/known_hosts to get rid of this message. Offending key in /home/user/.ssh/known_hosts:5 RSA host key for 194.44.10.145 has changed and you have requested strict checking. Host key verification failed. |
$echo "" > ~/.ssh/known_hosts
INET_TRAFIC 0 -- linux1.net.nt anywhere INET_TRAFIC 0 -- linux2.net.nt anywhere INET_TRAFIC 0 -- linux3.net.nt anywhere LOCAL_TRAFIC 0 -- linux3.net.nt serzh.net.nt LOCAL_TRAFIC 0 -- serzh.net.nt linux3.net.nt LOCAL_TRAFIC 0 -- serzh.net.nt linux1.net.nt LOCAL_TRAFIC 0 -- serzh.net.nt linux2.net.nt LOCAL_TRAFIC 0 -- linux2.net.nt serzh.net.nt LOCAL_TRAFIC 0 -- linux1.net.nt serzh.net.nt Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain INET_TRAFIC (6 references) target prot opt source destination Chain LOCAL_TRAFIC (6 references) target prot opt source destination |
$ssh root@194.44.10.145 -p 33
The authenticity of host '194.44.10.145 (194.44.10.145)' can't be established. RSA key fingerprint is d9:4b:59:8b:45:01:63:28:d0:47:fe:e6:dc:3b:e7:90. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '194.44.10.145' (RSA) to the list of known hosts. Password: Last login: Tue Mar 13 15:46:25 2007 from 10.0.2.1 Have a lot of fun... creo-storage:~ # creo-storage:~ # exit logout Connection to 194.44.10.145 closed. |
$ssh -X root@194.44.10.145 -p 33
exit Password: Last login: Wed Mar 14 13:47:23 2007 from mail2.techexpert.ua Have a lot of fun... creo-storage:~ # konqueror kbuildsycoca running... QPopupMenu: (go) Popup has invalid menu item QPopupMenu: (go) Popup has invalid menu item QPopupMenu: (go) Popup has invalid menu item QPopupMenu: (go) Popup has invalid menu item ... Minor opcode: 0 Resource id: 0x34596cd creo-storage:~ # X Error: BadWindow (invalid Window parameter) 3 Major opcode: 7 Minor opcode: 0 Resource id: 0x460003e ICE default IO error handler doing an exit(), pid = 21589, errno = 0 creo-storage:~ # exit logout Connection to 194.44.10.145 closed. |
$DISPLAY=192.168.16.2:0 xclock
bash: /home/user/vnc: No such file or directory Error: Can't open display: 192.168.16.2:0 |
$DISPLAY=192.168.16.2:1
Error: Can't open display: 192.168.16.2:1 |
$xe
xedit xev xeyes |
$xeyes
Error: Can't open display: |
$echo $DISPLAY
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$ssh -X linux2
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$DISPLAY=192.168.16.3:0 xeyes
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$DISPLAY=192.168.16.3:0.0 xeyes
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$DISPLAY=192.168.16.15:0.0 xeyes
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$exit
INET_TRAFIC 0 -- linux2.net.nt anywhere INET_TRAFIC 0 -- linux3.net.nt anywhere LOCAL_TRAFIC 0 -- linux3.net.nt serzh.net.nt LOCAL_TRAFIC 0 -- serzh.net.nt linux3.net.nt LOCAL_TRAFIC 0 -- serzh.net.nt linux1.net.nt LOCAL_TRAFIC 0 -- serzh.net.nt linux2.net.nt LOCAL_TRAFIC 0 -- linux2.net.nt serzh.net.nt LOCAL_TRAFIC 0 -- linux1.net.nt serzh.net.nt Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain INET_TRAFIC (6 references) target prot opt source destination Chain LOCAL_TRAFIC (6 references) target prot opt source destination Connection to linux2 closed. |
$DISPLAY=192.168.16.2:0 xeyes
Xlib: connection to "192.168.16.2:0.0" refused by server Xlib: No protocol specified Error: Can't open display: 192.168.16.2:0 |
$DISPLAY=192.168.16.15:0.0 xeyes
-rw-r--r-- root/root 3128 2006-08-12 16:29 /etc/X11/app-defaults/Xditview -rw-r--r-- root/root 20588 2006-07-30 01:01 /etc/X11/app-defaults/XScreenSav -rw-r--r-- root/root 6661 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-noc -rw-r--r-- root/root 45 2006-08-12 16:29 /etc/X11/app-defaults/Beforeligh -rw-r--r-- root/root 2109 2006-12-27 16:15 /etc/X11/app-defaults/UXTerm -rw-r--r-- root/root 20 2006-08-12 16:29 /etc/X11/app-defaults/XClock -rw-r--r-- root/root 492 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-col Xlib: connection to "192.168.16.15:0.0" refused by server Xlib: No protocol specified Error: Can't open display: 192.168.16.15:0.0 |
$nmap 192.168.16.15
2628/tcp open dict 3128/tcp open squid-http 3333/tcp open dec-notes 4444/tcp open krb524 5902/tcp open vnc-2 6000/tcp open X11 6002/tcp open X11:2 8888/tcp open sun-answerbook 9999/tcp open abyss Nmap finished: 1 IP address (1 host up) scanned in 0.469 seconds |
$DISPLAY=192.168.16.15:2 xeyes
Xlib: connection to "192.168.16.15:2.0" refused by server Xlib: Client is not authorized to connect to Server Error: Can't open display: 192.168.16.15:2 |
$ssh user@linux2
-rw-r--r-- root/root 2109 2006-12-27 16:15 /etc/X11/app-defaults/UXTerm -rw-r--r-- root/root 20 2006-08-12 16:29 /etc/X11/app-defaults/XClock -rw-r--r-- root/root 492 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-col The authenticity of host 'linux2 (192.168.16.2)' can't be established. RSA key fingerprint is 7f:33:09:13:bd:c0:13:11:8d:77:03:dd:2e:11:68:2d. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux2,192.168.16.2' (RSA) to the list of known hosts. user@linux2's password: Permission denied, please try again. user@linux2's password: l3-agent is already running: pid=6773; pidfile=/home/user/.lilalo/l3-agent.pid |
$xhost +
xhost: unable to open display "" |
$xhost --help
xhost: unable to open display "" |
$xhost +
xhost: unable to open display "" |
$man xhost
|
$xhost -help
xhost: unable to open display "" |
$xhost
-rw-r--r-- root/root 4481 2006-08-12 16:29 /etc/X11/app-defaults/XCalc-colo -rw-r--r-- root/root 5536 2006-08-12 16:29 /etc/X11/app-defaults/Xedit-colo -rw-r--r-- root/root 920 2006-08-12 16:29 /etc/X11/app-defaults/Xmessage-c -rw-r--r-- root/root 3128 2006-08-12 16:29 /etc/X11/app-defaults/Xditview -rw-r--r-- root/root 20588 2006-07-30 01:01 /etc/X11/app-defaults/XScreenSav -rw-r--r-- root/root 6661 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-noc -rw-r--r-- root/root 45 2006-08-12 16:29 /etc/X11/app-defaults/Beforeligh -rw-r--r-- root/root 2109 2006-12-27 16:15 /etc/X11/app-defaults/UXTerm -rw-r--r-- root/root 20 2006-08-12 16:29 /etc/X11/app-defaults/XClock -rw-r--r-- root/root 492 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-col xhost: unable to open display "" |
$+
-rw-r--r-- root/root 15448 2006-08-12 16:29 /etc/X11/app-defaults/Xedit -rw-r--r-- root/root 4481 2006-08-12 16:29 /etc/X11/app-defaults/XCalc-colo -rw-r--r-- root/root 5536 2006-08-12 16:29 /etc/X11/app-defaults/Xedit-colo -rw-r--r-- root/root 920 2006-08-12 16:29 /etc/X11/app-defaults/Xmessage-c -rw-r--r-- root/root 3128 2006-08-12 16:29 /etc/X11/app-defaults/Xditview -rw-r--r-- root/root 20588 2006-07-30 01:01 /etc/X11/app-defaults/XScreenSav -rw-r--r-- root/root 6661 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-noc -rw-r--r-- root/root 45 2006-08-12 16:29 /etc/X11/app-defaults/Beforeligh -rw-r--r-- root/root 2109 2006-12-27 16:15 /etc/X11/app-defaults/UXTerm -rw-r--r-- root/root 20 2006-08-12 16:29 /etc/X11/app-defaults/XClock -rw-r--r-- root/root 492 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-col |
$exit
Connection to linux2 closed. |
$DISPLAY=192.168.16.2:0 xeyes
-rw-r--r-- root/root 4481 2006-08-12 16:29 /etc/X11/app-defaults/XCalc-colo -rw-r--r-- root/root 5536 2006-08-12 16:29 /etc/X11/app-defaults/Xedit-colo -rw-r--r-- root/root 920 2006-08-12 16:29 /etc/X11/app-defaults/Xmessage-c -rw-r--r-- root/root 3128 2006-08-12 16:29 /etc/X11/app-defaults/Xditview -rw-r--r-- root/root 20588 2006-07-30 01:01 /etc/X11/app-defaults/XScreenSav -rw-r--r-- root/root 6661 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-noc -rw-r--r-- root/root 45 2006-08-12 16:29 /etc/X11/app-defaults/Beforeligh -rw-r--r-- root/root 2109 2006-12-27 16:15 /etc/X11/app-defaults/UXTerm -rw-r--r-- root/root 20 2006-08-12 16:29 /etc/X11/app-defaults/XClock -rw-r--r-- root/root 492 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-col |
$DISPLAY=192.168.16.2:0 xclock
-rw-r--r-- root/root 3128 2006-08-12 16:29 /etc/X11/app-defaults/Xditview -rw-r--r-- root/root 20588 2006-07-30 01:01 /etc/X11/app-defaults/XScreenSav -rw-r--r-- root/root 6661 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-noc -rw-r--r-- root/root 45 2006-08-12 16:29 /etc/X11/app-defaults/Beforeligh -rw-r--r-- root/root 2109 2006-12-27 16:15 /etc/X11/app-defaults/UXTerm -rw-r--r-- root/root 20 2006-08-12 16:29 /etc/X11/app-defaults/XClock -rw-r--r-- root/root 492 2006-08-12 16:29 /etc/X11/app-defaults/Bitmap-col Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset ^[ |
$ssh clint@192.168.16.15
Connection to 192.168.16.15 closed. |
$ps aux | tail
root 17286 0.0 0.0 0 0 ? S 15:35 0:00 [pdflush] root 17341 0.0 0.0 0 0 ? S 15:35 0:00 [pdflush] root 17814 0.0 0.0 4136 664 ? Ss 15:44 0:00 ssh-agent root 17824 0.0 0.0 4132 980 ? Ss 15:45 0:00 ssh-agent user 18902 0.2 0.4 11072 4252 ? S 16:19 0:00 xterm -class UXTerm -title uxterm -u8 user 18906 0.4 0.0 3628 524 pts/17 Ss+ 16:19 0:00 script -f -q /home/user/.lilalo//11627231591109627661-1173881954.script user 18953 0.0 0.0 3632 416 pts/17 S+ 16:19 0:00 script -f -q /home/user/.lilalo//11627231591109627661-1173881954.script user 18954 0.4 0.2 6296 2940 pts/18 Ss 16:19 0:00 bash -i user 19020 0.0 0.0 4292 1000 pts/18 R+ 16:20 0:00 ps aux user 19021 0.0 0.1 6296 1916 pts/18 R+ 16:20 0:00 bash -i |
$ls -la
итого 168 drwxr-xr-x 23 user user 4096 2007-03-14 15:13 . drwxr-xr-x 4 root root 4096 2007-03-02 21:54 .. -rw------- 1 user user 3159 2007-03-14 15:43 .bash_history -rw-r--r-- 1 user user 220 2007-03-02 21:54 .bash_logout -rw-r--r-- 1 user root 433 2007-03-13 15:39 .bash_profile -rw-r--r-- 1 user user 2288 2007-03-14 15:13 .bashrc drwxr-xr-x 2 user user 4096 2007-03-03 15:57 Desktop -rw------- 1 user user 26 2007-03-03 15:57 .dmrc drwxr-xr-x 7 user user 4096 2007-03-13 19:21 .evolution ... drwx------ 2 user user 4096 2007-03-14 13:44 .ssh drwxr-xr-x 3 user user 4096 2007-03-14 10:23 temp drwxr-xr-x 2 user user 4096 2007-03-14 15:12 .themes drwx------ 4 user user 4096 2007-03-14 10:27 .thumbnails drwx------ 2 user user 4096 2007-03-03 15:57 .update-notifier -rw------- 1 user user 4376 2007-03-14 15:13 .viminfo -rw------- 1 user user 286 2007-03-14 13:43 .Xauthority drwxr-xr-x 9 user user 4096 2007-03-13 17:07 xgu.ru drwxr-xr-x 2 user user 4096 2007-03-13 15:21 .xine -rw-r--r-- 1 user user 6288 2007-03-14 15:13 .xsession-errors |
$ls -la .ssh/
итого 12 drwx------ 2 user user 4096 2007-03-14 13:44 . drwxr-xr-x 23 user user 4096 2007-03-14 15:13 .. -rw-r--r-- 1 user user 1597 2007-03-14 15:21 known_hosts |
$ssh-keygen -t rsa1
Generating public/private rsa1 key pair. Enter file in which to save the key (/home/user/.ssh/identity): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/identity. Your public key has been saved in /home/user/.ssh/identity.pub. The key fingerprint is: 29:d7:45:fd:6c:c5:46:98:a2:ce:0f:9a:64:7d:ce:03 user@linux1 |
$ls -la .ssh/
итого 20 drwx------ 2 user user 4096 2007-03-14 16:21 . drwxr-xr-x 23 user user 4096 2007-03-14 15:13 .. -rw------- 1 user user 974 2007-03-14 16:21 identity -rw-r--r-- 1 user user 638 2007-03-14 16:21 identity.pub -rw-r--r-- 1 user user 1597 2007-03-14 15:21 known_hosts |
$ps aux | grep ssh
root 2681 0.0 0.1 4924 1088 ? Ss 09:30 0:00 /usr/sbin/sshd user 2902 0.0 0.0 4136 740 ? Ss 09:31 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager user 3367 0.0 0.2 5716 2700 pts/5 S+ 09:32 0:03 ssh romzes@izv.kharkov.ua user 3378 0.0 0.2 5416 2568 pts/7 S+ 09:33 0:00 ssh root@factor.ua root 4332 0.0 0.2 8640 2664 ? Ss 09:54 0:05 sshd: root@pts/13 root 12959 0.0 0.2 8644 2588 ? Ss 13:43 0:00 sshd: user [priv] user 12961 0.0 0.1 8748 1688 ? S 13:43 0:00 sshd: user@pts/23 user 13155 0.0 0.2 5412 2608 pts/24 S+ 13:44 0:00 ssh -X clint@192.168.16.15 user 13573 0.3 0.3 6212 3784 pts/1 S+ 13:55 0:35 ssh -X root@194.44.10.145 -p 33 root 14385 0.0 0.0 4132 664 ? Ss 14:15 0:00 ssh-agent --help root 14530 0.0 0.0 4132 660 ? Ss 14:17 0:00 ssh-agent root 14574 0.0 0.0 4132 980 ? Ss 14:18 0:00 ssh-agent root 16375 0.0 0.2 8644 2668 ? Ss 15:13 0:01 sshd: root@pts/12 root 16889 0.0 0.0 5412 996 ? Ss 15:27 0:00 ssh -f -N -R 27000:127.0.0.1:22 192.168.16.3 root 17117 0.0 0.0 5412 1028 ? Ss 15:31 0:00 ssh -L 1111:192.168.16.1:110 -f -N 192.168.16.2 root 17814 0.0 0.0 4136 664 ? Ss 15:44 0:00 ssh-agent root 17824 0.0 0.0 4132 980 ? Ss 15:45 0:00 ssh-agent user 19255 0.0 0.0 3744 764 pts/18 R+ 16:27 0:00 grep ssh |
$ssh linux2
user@linux2's password: |
$ls -la .ssh/
итого 20 drwx------ 2 user user 4096 2007-03-14 16:21 . drwxr-xr-x 23 user user 4096 2007-03-14 15:13 .. -rw------- 1 user user 974 2007-03-14 16:21 identity -rw-r--r-- 1 user user 638 2007-03-14 16:21 identity.pub -rw-r--r-- 1 user user 1597 2007-03-14 15:21 known_hosts |
$cat .ssh/identity.pub | ssh linu2 'cat >> ./ssh/authorized_keys'
ssh: linu2: Name or service not known |
$cat .ssh/identity.pub | ssh linux2 'cat >> ./ssh/authorized_keys'
user@linux2's password: bash: ./ssh/authorized_keys: No such file or directory |
$cat .ssh/identity.pub | ssh linux2 'cat >> .ssh/authorized_keys'
user@linux2's password: |
$ssh linux2
user@linux2's password: |
$ssh linux2
user@linux2's password: l3-agent is already running: pid=6773; pidfile=/home/user/.lilalo/l3-agent.pid |
$ls -la
итого 44108 drwx------ 35 user user 4096 2007-03-14 15:13 . drwxr-xr-x 5 user user 4096 2007-03-01 16:20 .. -rw-r--r-- 1 user user 0 2007-03-01 10:32 1.jpg -rw-r--r-- 1 user user 0 2007-03-01 10:32 2.jpeg drwx------ 2 user user 4096 2007-03-14 12:26 .3ddesktop -rw-r--r-- 1 user user 0 2007-03-01 11:19 7 -rw-r--r-- 1 user user 528 2007-03-01 15:09 answer -rw-r--r-- 1 user user 62 2007-02-28 15:45 awk.file -rw-r--r-- 1 user user 3845 2003-12-06 17:29 base ... -rw-r--r-- 1 user user 30 2007-02-28 14:27 unsorted -rw-r--r-- 1 user user 0 2003-12-06 17:29 very_long_file_name -rw------- 1 user user 5474 2007-03-01 15:36 .viminfo -rw-r--r-- 1 user user 45 2007-03-01 11:31 .vimrc -rwxr-xr-x 1 user user 1600 2007-02-28 14:16 vimtutor -rwxr-xr-x 1 user user 177 2007-03-01 12:15 while drwxr-xr-x 4 user user 4096 2007-03-01 11:58 .wine -rw------- 1 user user 215 2007-03-14 15:13 .Xauthority drwxr-xr-x 2 user user 4096 2007-02-28 14:35 .xine -rw-r--r-- 1 user user 2147 2007-03-14 15:17 .xsession-errors |
$ls -la .ssh/
итого 16 drwxr-xr-x 2 user user 4096 2007-02-28 14:17 . drwx------ 35 user user 4096 2007-03-14 15:13 .. -rw-r--r-- 1 user user 1247 2007-03-14 16:30 authorized_keys -rw-r--r-- 1 user user 2652 2007-03-12 12:46 known_hosts |
$exit
exit Connection to linux2 closed. |
$ssh root@linux2 '/etc/init.d/sshd restart'
root@linux2's password: bash: /etc/init.d/sshd: No such file or directory |
$ssh root@linux2 '/etc/init.d/ssh restart'
root@linux2's password: Restarting OpenBSD Secure Shell server: sshd. |
$ssh linux2
user@linux2's password: |
$ssh linux2
user@linux2's password: l3-agent is already running: pid=6773; pidfile=/home/user/.lilalo/l3-agent.pid |
$ls -l .ssh/
итого 8 -rw-r--r-- 1 user user 1247 2007-03-14 16:30 authorized_keys -rw-r--r-- 1 user user 2652 2007-03-12 12:46 known_hosts |
$chmod ag-r .ssh/authorized_keys
|
$telnet 192.168.16.3
Trying 192.168.16.3... Connected to 192.168.16.3. Escape character is '^]'. Debian GNU/Linux 4.0 linux3 login: password Password: Login incorrect linux3 login: user Password: Last login: Wed Mar 14 16:37:28 2007 from localhost on pts/6 Linux linux3 2.6.18-4-686 #1 SMP Wed Feb 21 16:06:54 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=6511; pidfile=/home/user/.lilalo/l3-agent.pid |
$ls -l .ssh/
итого 8 --w------- 1 user user 1247 2007-03-14 16:30 authorized_keys -rw-r--r-- 1 user user 2652 2007-03-12 12:46 known_hosts |
$chmod u+r .ssh/authorized_keys
|
$ls -l .ssh/
итого 8 -rw------- 1 user user 1247 2007-03-14 16:30 authorized_keys -rw-r--r-- 1 user user 2652 2007-03-12 12:46 known_hosts |
$exit
exit Connection to linux2 closed. |
$ssh linux2
user@linux2's password: |
$exit
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$ls -l .ssh/
итого 12 -rw------- 1 user user 974 2007-03-14 16:21 identity -rw-r--r-- 1 user user 638 2007-03-14 16:21 identity.pub -rw-r--r-- 1 user user 1597 2007-03-14 15:21 known_hosts |
$ssh linux2
user@linux2's password: |
$ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The key fingerprint is: 5b:d7:1f:10:21:20:21:f0:84:57:90:e7:b0:f6:30:41 user@linux1 |
$cat .ssh/id_rsa.pub | ssh linux2 'cat >> .ssh/authorized_keys'
user@linux2's password: |
$ssh linux2
l3-agent is already running: pid=6773; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit Connection to linux2 closed. |
$su -
Password: l3-agent is already running: pid=13943; pidfile=/root/.lilalo/l3-agent.pid |
$su -
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$su -
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
$su -
top - 09:33:42 up 13 days, 18:47, 1 user, load average: 0.08, 0.04, 0.01 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 98.2%id, 1.5%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 238264k total, 231788k used, 6476k free, 9740k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 162308k used, 1187144k free, 31732k cached 1 root 15 0 744 48 20 S 0 0.0 0:01.85 init 2 root RT 0 0 0 0 S 0 0.0 0:00.22 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.10 migration/1 ... 121 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.80 pdflush 168 root 15 -5 0 0 0 S 0 0.0 0:09.24 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux |
#mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/hda9 on /home type ext3 (rw) /dev/hda8 on /tmp type ext3 (rw) /dev/hda5 on /usr type ext3 (rw) /dev/hda6 on /var type ext3 (rw) /dev/sdb on /media/usbdisk type vfat (rw,noexec,nosuid,nodev,quiet,shortname=mixed,uid=1000,gid=1000,umask=077,iocharset=utf8) |
#mount /mnt/ /dev/sda
mount: you must specify the filesystem type |
#tail /var/log/messages
Mar 14 19:13:41 linux1 kernel: sd 0:0:0:0: SCSI error: return code = 0x00010000 Mar 14 19:13:41 linux1 kernel: end_request: I/O error, dev sda, sector 1368592 Mar 14 19:13:41 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 4 Mar 14 19:13:41 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 5 Mar 14 19:13:42 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 6 Mar 14 19:13:42 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 7 Mar 14 19:14:16 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 8 Mar 14 19:14:17 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 9 Mar 14 19:14:17 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 10 Mar 14 19:14:18 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 11 |
#tail -f /var/log/messages
Mar 14 19:13:41 linux1 kernel: sd 0:0:0:0: SCSI error: return code = 0x00010000 Mar 14 19:13:41 linux1 kernel: end_request: I/O error, dev sda, sector 1368592 Mar 14 19:13:41 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 4 Mar 14 19:13:41 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 5 Mar 14 19:13:42 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 6 Mar 14 19:13:42 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 7 Mar 14 19:14:16 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 8 Mar 14 19:14:17 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 9 Mar 14 19:14:17 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 10 Mar 14 19:14:18 linux1 kernel: usb 4-1: new high speed USB device using ehci_hcd and address 11 ... Mar 14 19:20:09 linux1 kernel: SCSI device sdb: 1985664 512-byte hdwr sectors (1017 MB) Mar 14 19:20:09 linux1 kernel: sdb: Write Protect is off Mar 14 19:20:09 linux1 kernel: SCSI device sdb: 1985664 512-byte hdwr sectors (1017 MB) Mar 14 19:20:09 linux1 kernel: sdb: Write Protect is off Mar 14 19:20:09 linux1 kernel: sdb: unknown partition table Mar 14 19:20:09 linux1 kernel: sd 3:0:0:0: Attached scsi removable disk sdb Mar 14 19:24:11 linux1 kernel: usb 4-5: reset high speed USB device using ehci_hcd and address 17 Mar 14 19:28:35 linux1 kernel: usb 4-2: reset high speed USB device using ehci_hcd and address 16 Mar 14 19:28:35 linux1 kernel: usb 4-5: USB disconnect, address 17 Mar 14 19:30:31 linux1 kernel: usb 4-2: USB disconnect, address 16 |
#exit
exit |
$dig izv.kharkov.ua
; <<>> DiG 9.3.4 <<>> izv.kharkov.ua ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14701 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13 ;; QUESTION SECTION: ;izv.kharkov.ua. IN A ;; ANSWER SECTION: izv.kharkov.ua. 3600 IN A 82.207.118.247 ;; AUTHORITY SECTION: ... h.root-servers.net. 7744 IN A 128.63.2.53 i.root-servers.net. 7744 IN A 192.36.148.17 j.root-servers.net. 7744 IN A 192.58.128.30 k.root-servers.net. 7744 IN A 193.0.14.129 l.root-servers.net. 7744 IN A 198.32.64.12 m.root-servers.net. 7744 IN A 202.12.27.33 ;; Query time: 75 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Thu Mar 15 10:50:49 2007 ;; MSG SIZE rcvd: 467 |
$su -
top - 09:52:59 up 14 days, 19:06, 1 user, load average: 0.12, 0.09, 0.03 Tasks: 97 total, 2 running, 95 sleeping, 0 stopped, 0 zombie Password: .0%us, 0.0%sy, 0.0%ni, 99.2%id, 0.8%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 238264k total, 234288k used, 3976k free, 17044k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 184036k used, 1165416k free, 26032k cached 1 root 18 0 744 48 20 S 0 0.0 0:01.92 init 2 root RT 0 0 0 0 S 0 0.0 0:00.24 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.12 migration/1 ... 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.83 pdflush 168 root 10 -5 0 0 0 S 0 0.0 0:09.85 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux 804 root 19 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_0 |
$ssh -X root@194.44.10.145 -p 33
Password: Last login: Wed Mar 14 13:49:15 2007 from mail2.techexpert.ua Have a lot of fun... creo-storage:~ # kopete & [1] 24205 creo-storage:~ # kbuildsycoca running... Read from remote host 194.44.10.145: No route to host Connection to 194.44.10.145 closed. |
$ssh romzes@
top - 09:52:59 up 14 days, 19:06, 1 user, load average: 0.12, 0.09, 0.03 Tasks: 97 total, 2 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.2%id, 0.8%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 238264k total, 234288k used, 3976k free, 17044k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1349452k total, 184036k used, 1165416k free, 26032k cached 1 root 18 0 744 48 20 S 0 0.0 0:01.92 init 2 root RT 0 0 0 0 S 0 0.0 0:00.24 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.12 migration/1 ... 122 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 166 root 15 0 0 0 0 S 0 0.0 0:00.83 pdflush 168 root 10 -5 0 0 0 S 0 0.0 0:09.85 kswapd0 169 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/0 170 root 14 -5 0 0 0 S 0 0.0 0:00.00 aio/1 424 root 10 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 790 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/0 792 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata/1 793 root 20 -5 0 0 0 S 0 0.0 0:00.00 ata_aux 804 root 19 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_0 |
$dig 82.207.118.247
; <<>> DiG 9.3.4 <<>> 82.207.118.247 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28189 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;82.207.118.247. IN A ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2007031401 1800 900 604800 86400 ;; Query time: 386 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Thu Mar 15 10:51:39 2007 ;; MSG SIZE rcvd: 107 |
$dig -x 82.207.118.247
; <<>> DiG 9.3.4 <<>> -x 82.207.118.247 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42862 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13 ;; QUESTION SECTION: ;247.118.207.82.in-addr.arpa. IN PTR ;; ANSWER SECTION: 247.118.207.82.in-addr.arpa. 82717 IN PTR izv.kharkov.ua. ;; AUTHORITY SECTION: ... h.root-servers.net. 7664 IN A 128.63.2.53 i.root-servers.net. 7664 IN A 192.36.148.17 j.root-servers.net. 7664 IN A 192.58.128.30 k.root-servers.net. 7664 IN A 193.0.14.129 l.root-servers.net. 7664 IN A 198.32.64.12 m.root-servers.net. 7664 IN A 202.12.27.33 ;; Query time: 37 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Thu Mar 15 10:52:09 2007 ;; MSG SIZE rcvd: 492 |
$host mail.ru
mail.ru has address 127.0.0.1 mail.ru mail is handled by 10 mxs.mail.ru. |
$host mail.ru
mail.ru has address 127.0.0.1 mail.ru mail is handled by 10 mxs.mail.ru. |
$host mail.ru
mail.ru has address 127.0.0.1 mail.ru mail is handled by 10 mxs.mail.ru. |
$host mail.ru
mail.ru has address 194.67.57.26 mail.ru mail is handled by 10 mxs.mail.ru. |
$host mail.ru
mail.ru has address 194.67.57.26 mail.ru mail is handled by 10 mxs.mail.ru. |
$host mail.ru
mail.ru has address 192.168.16.15 mail.ru mail is handled by 10 mxs.mail.ru. |
$host ukr.net
ukr.net has address 195.214.195.101 ukr.net mail is handled by 10 mxs.ukr.net. |
$host ukr.net
ukr.net has address 192.168.16.15 ukr.net mail is handled by 10 mxs.ukr.net. |
$host ukr.net
ukr.net has address 195.214.195.101 ukr.net mail is handled by 10 mxs.ukr.net. |
$ssh -X root@194.44.10.145 -p 33
ssh: connect to host 194.44.10.145 port 33: No route to host |
$ip addr
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:14 brd ff:ff:ff:ff:ff:ff inet 192.168.16.1/24 brd 192.168.16.255 scope global eth0 inet6 fe80::201:2ff:feb4:6114/64 scope link valid_lft forever preferred_lft forever 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:09 brd ff:ff:ff:ff:ff:ff 4: sit0: <NOARP> mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0 |
$ping 194.44.10.145
PING 194.44.10.145 (194.44.10.145) 56(84) bytes of data. 64 bytes from 194.44.10.145: icmp_seq=1 ttl=54 time=16.9 ms 64 bytes from 194.44.10.145: icmp_seq=2 ttl=54 time=16.3 ms --- 194.44.10.145 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 16.385/16.643/16.901/0.258 ms |
$dig @82.207.118.247 izv.kharkov.ua
; <<>> DiG 9.3.4 <<>> @82.207.118.247 izv.kharkov.ua ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 62889 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;izv.kharkov.ua. IN A ;; Query time: 131 msec ;; SERVER: 82.207.118.247#53(82.207.118.247) ;; WHEN: Thu Mar 15 12:26:25 2007 ;; MSG SIZE rcvd: 32 |
$ssh root@194.44.10.145
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 cd:2c:72:36:f4:71:6a:45:f2:c6:8b:42:23:1d:08:10. Please contact your system administrator. Add correct host key in /home/user/.ssh/known_hosts to get rid of this message. Offending key in /home/user/.ssh/known_hosts:2 RSA host key for 194.44.10.145 has changed and you have requested strict checking. Host key verification failed. |
Время первой команды журнала | 13:44:08 2007- 3-14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:35:26 2007- 3-15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 26.73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.70 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.62 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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