/l3/users/eb/2009/linux7/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.241 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.224 ms 64 bytes from 10.0.35.100: icmp_seq=3 ttl=62 time=0.224 ms ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.224/0.229/0.241/0.019 ms |
$cat /etc/crontab
# /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) #* * * * * root /bin/date|sendxmpp ujey@freetalk.org.ua;sleep 30;/bin/date|sendxmpp ujey@freetalk.org.ua #*/2 * * * * root /bin/date >> /tmp/date2.log # |
$ping klekhivka.myftp.org
PING klekhivka.myftp.org (94.179.252.130) 56(84) bytes of data. ^C --- klekhivka.myftp.org ping statistics --- 39 packets transmitted, 0 received, 100% packet loss, time 38303ms |
$su -
Пароль: Removing stale pidfile |
#whois
bash: whois: команда не найдена |
#apt-get install
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: portmap Для их удаления используйте 'apt-get autoremove'. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#apt-get install who
whohas whois whowatch |
#apt-get install whois
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: portmap Для их удаления используйте 'apt-get autoremove'. НОВЫЕ пакеты, которые будут установлены: whois обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 56,1kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 332kB. Получено:1 http://192.168.15.7 sid/main whois 4.7.33 [56,1kB] Получено 56,1kБ за 0s (416kБ/c) Выбор ранее не выбранного пакета whois. (Чтение базы данных ... на данный момент установлено 56706 файлов и каталогов.) Распаковывается пакет whois (из файла .../archives/whois_4.7.33_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет whois (4.7.33) ... |
#whois 212.109.52.50
% This is the RIPE Whois query server #1. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag. % Information related to '212.109.52.48 - 212.109.52.55' inetnum: 212.109.52.48 - 212.109.52.55 netname: EXPRESS-BANK-GTUA ... fax-no: +380 44 2764269 e-mail: dato@express.kiev.ua nic-hdl: DG885-RIPE source: RIPE # Filtered % Information related to '212.109.32.0/19AS12530' route: 212.109.32.0/19 descr: SOL Small Delegated Block origin: AS12530 mnt-by: GTUA-RT-MNT source: RIPE # Filtered |
#whois 62.149.18.190
% This is the RIPE Whois query server #1. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag. % Information related to '62.149.18.0 - 62.149.19.255' inetnum: 62.149.18.0 - 62.149.19.255 netname: Hostpro-ua ... phone: +380 44 4617988 nic-hdl: COLO3-RIPE mnt-by: AS15497-MNT source: RIPE # Filtered % Information related to '62.149.0.0/19AS15497' route: 62.149.0.0/19 descr: Colocall Ltd. origin: AS15497 mnt-by: AS15497-MNT source: RIPE # Filtered |
#whois 94.179.208.185
% This is the RIPE Whois query server #1. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag. % Information related to '94.178.0.0 - 94.179.255.255' inetnum: 94.178.0.0 - 94.179.255.255 netname: UA-UKRTELECOM-20080829 ... descr: AGGREGATE BLOCK FOR UKRTELECOM origin: AS6849 mnt-by: AS6849-MNT source: RIPE # Filtered % Information related to '94.179.128.0/17AS6849' route: 94.179.128.0/17 descr: AGGREGATE BLOCK FOR UKRTELECOM origin: AS6849 mnt-by: AS6849-MNT source: RIPE # Filtered |
#ls -l /etc/ssh
итого 152 -rw-r--r-- 1 root root 125749 Май 4 23:39 moduli -rw-r--r-- 1 root root 1595 Май 4 23:39 ssh_config -rw-r--r-- 1 root root 1874 Май 24 13:23 sshd_config -rw------- 1 root root 668 Май 24 13:23 ssh_host_dsa_key -rw-r--r-- 1 root root 599 Май 24 13:23 ssh_host_dsa_key.pub -rw------- 1 root root 1675 Май 24 13:23 ssh_host_rsa_key -rw-r--r-- 1 root root 391 Май 24 13:23 ssh_host_rsa_key.pub |
#ls -l ~/.ssh
итого 8 -rw-r--r-- 1 root root 609 Май 25 02:40 authorized_keys -rw-r--r-- 1 root root 1134 Июн 2 09:30 known_hosts |
#cat /root/.ssh/
authorized_keys known_hosts |
#cat /root/.ssh/
authorized_keys known_hosts |
#cat /root/.ssh/known_hosts
|1|3PKMxPm32YV3+yoQ7hst6LmLF70=|atQ0wFqX7C5N7aI+HV0C586itJ0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2MKci5Bhj9AzgVtUDRapesSxLzafVqE/0Zb9Yd3hVnYSA8SAZ5V635nHjOZyGr/3twLQDX0Dr3BAemmBMmrbQi/MbRxSCUXumdeMQ9yIbfT3YxMJskqdpQEkLiCrqm2/0wEMUh0qqTzbAGdqBM+z3nWPeZE5EGdIVuVf++iV4GwvhWVlx5NDONG6tGfmpF9P4KV99/J1jhjf5s+ssMYJAbEgPlbi45ZLfV9uzIuk8RhN3yv6+kcg9K3dNLeaq+QB8pNAxqVNitOh13G2jyxD7ea3IDTiH1q8WfsSSJIwtN3AQsP |1|w59j7JqgciwJdCp8iJlk9Rti9wc=|i/emCPSyk4t6WpWsq/vviHm5Nfw= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|x1MWyYaYhNKyh6rkjOiETCsq/iQ=|zQpD4aam7A7yr5cQSjg1I+h0RHc= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAHEAzhDiIBZW+W7fAlcc/EocYkS6FBw7+YwzZxqjyFwu7+QoRlk5EC8oiWdLu1vW0BjmPDxD/8k2xYK+vMaxne4zBpMLT09RTj9eUSll3W1JZO6IHZqv8lZQ8yTtAVzyDVpjB/XtOyI9ejIrbVQIJ+j7Uw== |
#vim /root/.ssh/config
|
#ssh 192.168.15.4
The authenticity of host '192.168.15.4 (192.168.15.4)' 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)? Host key verification failed. |
##яинкzbyraemo klyuchi z potribnyh serveriv,shob ne pytalo yes/no
|
#ssh-keyscan 192.168.15.{1..16} | grep -v ^#
# 192.168.15.15 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.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.16 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.10 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.11 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.12 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.16 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== 192.168.15.14 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNFGrAyTKQU6ervb5tmrCkscwq0m6WHuekT7jViqYw== |
#ssh 192.168.15.4
The authenticity of host '192.168.15.4 (192.168.15.4)' 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)? Host key verification failed. |
#ssh-keyscan 192.168.15.{1..16} | grep -v ^#>>/root/.ssh/known_hosts
# 192.168.15.15 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.13 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.16 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 # 192.168.15.14 SSH-2.0-OpenSSH_5.1p1 Debian-5+b1 |
#ssh-keygen -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 4f:12:e3:91:35:45:c0:40:f4:20:bc:02:22:48:a9:e3 root@linux7 The key's randomart image is: +--[ DSA 1024]----+ |o.. ..o=o++o | |+.. .. =.. | |o. . .= . | |o . .. + | |.. . S . | | E + | | . | | | | | +-----------------+ |
#ls -l /root/.s
.screenrc .sendxmpprc .ssh/ |
#ls -l /root/.ssh/
итого 24 -rw-r--r-- 1 root root 609 Май 25 02:40 authorized_keys -rw-r--r-- 1 root root 27 Июн 3 10:20 config -rw------- 1 root root 668 Июн 3 10:37 id_dsa -rw-r--r-- 1 root root 601 Июн 3 10:37 id_dsa.pub -rw-r--r-- 1 root root 7445 Июн 3 10:36 known_hosts |
##zgeneruvalys id_dsa id_dsa.pub
|
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.1 'cat >> ~/.ssh/authorized_keys
> ' Host key fingerprint is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5 +--[ RSA 2048]----+ | .ooo =.o | | .+ o = = . | | o o * o o | | + + + + | | . . = S E | | . . | | | | | | | +-----------------+ root@192.168.15.1's password: |
##dodaly svij klyuch na 192.168.15.1 i vvely parol, teper mogna zajty bez parolya
|
#ssh 192.168.15.1 touch .hushlogin
Host key fingerprint is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5 +--[ RSA 2048]----+ | .ooo =.o | | .+ o = = . | | o o * o o | | + + + + | | . . = S E | | . . | | | | | | | +-----------------+ |
#ssh 192.168.15.1
Host key fingerprint is 54:b6:4e:a0:18:a4:c1:b1:8f:f5:64:59:31:ba:63:f5 +--[ RSA 2048]----+ | .ooo =.o | | .+ o = = . | | o o * o o | | + + + + | | . . = S E | | . . | | | | | | | +-----------------+ l3-agent is already running: pid=4276; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.15.1 closed. |
##zgeneruvalys id_dsa id_dsa.pub
cat ~/.ssh/id_dsa.pub | ssh 192.168.15.1 'cat >> ~/.ssh/authorized_keys 8 ' 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.8's password: |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.8 'cat >> ~/.ssh/authorized_keys
6 ' Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ root@192.168.15.6's password: |
#ssh 192.168.15.8
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 linux8 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: Sat May 30 15:20:43 2009 Removing stale pidfile |
#exit
Connection to 192.168.15.8 closed. |
#ssh 192.168.15.6
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux6 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:03:17 2009 from linux14.unix.nt l3-agent is already running: pid=24940; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.15.6 closed. |
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.6 'cat >> ~/.ssh/authorized_keys
|
#ssh 192.168.15.8
cat /root/.ssh/ authorized_keys autorized_keys config id_dsa id_dsa.pub known_hosts |
#cat /root/.ssh/
authorized_keys config id_dsa id_dsa.pub known_hosts |
#cat /root/.ssh/authorized_keys
ssh-dss AAAAB3NzaC1kc3MAAACBAPM7secFkeM6KVrBL00ogESqHhZsItP2Pe2+hNt1FSvIZlNgFOvQUnAoC0TNVv8nASnoii/j4Ts2QNVe68Ox66WcXkV1ybH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.pub ssh_host_rsa_key ssh_host_rsa_key.pub |
#cat /etc/ssh/sshd_config
# Package generated configuration file # See the sshd(8) manpage for details # What ports, IPs and protocols we listen for Port 22 # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress :: #ListenAddress 0.0.0.0 Protocol 2 # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key ... PrintMotd no PrintLastLog yes TCPKeepAlive yes #UseLogin no #MaxStartups 10:30:60 #Banner /etc/issue.net # Allow client to pass locale environment variables AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes |
##parolna fraza na klyuch
|
#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: passphrase too short: have 3 bytes, need > 4 Saving the key failed: /root/.ssh/id_dsa. |
#exit
Connection to 192.168.15.6 closed. |
#exit
Connection to 192.168.15.8 closed. |
#vim /root/.ssh/config
|
#eval `ssh-agent`
Agent pid 21297 |
#ssh-add
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) |
#ssh 192.168.15.6
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux6 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:52:44 2009 from linux13.unix.nt 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: 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). |
#exit
Connection to 192.168.15.6 closed. |
#ssh-agent -l
ssh-agent: illegal option -- l usage: ssh-agent [options] [command [arg ...]] Options: -c Generate C-shell commands on stdout. -s Generate Bourne shell commands on stdout. -k Kill the current agent. -d Debug mode. -a socket Bind agent socket to given name. -t life Default identity lifetime (seconds). |
#ssh-add --help
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) |
#ssh 192.168.15.6
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Linux linux6 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 11:53:18 2009 from linux7.unix.nt l3-agent is already running: pid=24940; pidfile=/root/.lilalo/l3-agent.pid |
#cat /root/.ssh/aut
authorized_keys autorized_keys |
#cat /root/.ssh/authorized_keys
ssh-dss AAAAB3NzaC1kc3MAAACBAPM7secFkeM6KVrBL00ogESqHhZsItP2Pe2+hNt1FSvIZlNgFOvQUnAoC0TNVv8nASnoii/j4Ts2QNVe68Ox66WcXkV1ybHo9k75Bvm66mn0EZmhd7CfiQb2i+frZlM0TxDCPVBE8245M+5nU0neihE7OkGy6Y+fUT9/5PCREzOfAAAAFQDlSO+CParevDU1EMnFnyCWgHrgLwAAAIEA6xZUtORCvJDQAdLmfLkW4bfge5gzYuLkf3eWy8hbe5yWlHATC/YM1QefDzHZOJEvBjN6UXJ8AdeTa/9Qh6xysWsE66HJQhnfRL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wWR+g7Ov8JLJhuaOFG+VjdI38XmN6qjyor4JgHU9OIG7ZOcQDY9Kq2ekGeGAag+YUMcJ3Q1QEyz8MYdRAwU5AP05tbouCxb5QLH0gINGJEKMmhfsD8QH ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA+7DP0HvIVVKBpb0zuYIU79G9vyerpao8CWUH4ZXayTuiiOuPnFka+SB193FwA6uKTuVuAvEnU1VkbgSaqRvErn1cTQ6ghlUiAwNiFKER7B+zuII4LMZWHEfIKqL4FbVYNyPZPuwkCuGMa080b8+yJdWLDoRNIEgPTwCVdhzJSR9/d3InH+F252TNp1JNQT/IjGMVr1TDqYBzOoE8t8JcIZ4QJUT+rMcxd2qnxSB/x/0H0wx2Mk/OOn2w8sl8vp8uPt8X9FV5PG/Sldb/rBUQ7+HzgRFTEFUsigilHmIsJQLxQYDpFeOeggi8w70ZFGQbMvDQKRHpx8rPE62h4Kmglw== root@linux11 |
#exit
Connection to 192.168.15.6 closed. |
## forvard klyuchiv dlya vhodu zi svoim klyuchem na servaky cherez promignu tachku
|
#ssh -X 192.168.15.8
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 linux8 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:40:35 2009 from linux7.unix.nt l3-agent is already running: pid=21881; pidfile=/root/.lilalo/l3-agent.pid |
#xc
xcalc xclipboard xclock xcmsdb xconsole xcursorgen xcutsel |
#xcalc
Error: Can't open display: |
#exit
Connection to 192.168.15.8 closed. |
#xcalc
Error: Can't open display: |
#xclock
Error: Can't open display: |
#apt-get install xc
xcal xcb-proto xchat-gnome xchm xclock xconq-common xcwcp xcalc xcdroast xchat-gnome-common xcin xcolmix xconq-doc xcalendar-i18n xcftools xchat-guile xcircuit xcolors xconsole xcalib xchain xchat-otr xclip xcolorsel xcontrib xcardii xchat xchat-systray xclipboard xcompmgr xcursorgen xcb xchat-common xchat-xsys xclips xconq xcursor-themes |
#apt-get install xc
xcal xcb-proto xchat-gnome xchm xclock xconq-common xcwcp xcalc xcdroast xchat-gnome-common xcin xcolmix xconq-doc xcalendar-i18n xcftools xchat-guile xcircuit xcolors xconsole xcalib xchain xchat-otr xclip xcolorsel xcontrib xcardii xchat xchat-systray xclipboard xcompmgr xcursorgen xcb xchat-common xchat-xsys xclips xconq xcursor-themes |
#apt-get install xcl
xclip xclipboard xclips xclock |
#apt-get install xclock
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Пакет xclock недоступен, но упомянут в списке зависимостей другого пакета. Это может означать, что пакет отсутствует, устарел, или доступен из источников, не упомянутых в sources.list Однако следующие пакеты могут его заменить: x11-apps E: Для пакета xclock не найдены кандидаты на установку |
#x
Display all 125 possibilities? (y or n) |
#xclock
Error: Can't open display: |
#exit
Connection to 192.168.15.8 closed. |
#ice
iceauth iceweasel |
#iceweasel
Error: no display specified |
#cat /etc/ssh/sshd_config
# Package generated configuration file # See the sshd(8) manpage for details # What ports, IPs and protocols we listen for Port 22 # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress :: #ListenAddress 0.0.0.0 Protocol 2 # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key ... PrintMotd no PrintLastLog yes TCPKeepAlive yes #UseLogin no #MaxStartups 10:30:60 #Banner /etc/issue.net # Allow client to pass locale environment variables AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes |
#su user
|
$ice
iceauth iceweasel |
$iceweasel
Error: no display specified |
$iceweasel
Error: no display specified |
#vim /root/.ssh/config
|
#ssh 192.168.15.8
ssh: connect to host 192.168.15.8 port 22222: Connection refused |
#ssh --help
usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w local_tun[:remote_tun]] [user@]hostname [command] |
#mann ssh
bash: mann: команда не найдена |
#man ssh
|
#ssh -N -f -L 22000:192.168.15.8:22 192.168.15.6
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ |
#ssh 127.0.0.1 -p 22000
The authenticity of host '[127.0.0.1]:22000 ([127.0.0.1]:22000)' 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+| | =| ... Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[127.0.0.1]:22000' (RSA) to the list of known hosts. Linux linux8 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:24:16 2009 from linux7.unix.nt l3-agent is already running: pid=21881; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 127.0.0.1 closed. |
#exit
Connection to 127.0.0.1 closed. |
#>~/.ssh/authorized_keys
|
#вÑÐdig faz21.org.ua
; <<>> DiG 9.6.0-P1 <<>> faz21.org.ua ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 32857 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;faz21.org.ua. IN A ;; AUTHORITY SECTION: org.ua. 10800 IN SOA ns.net.ua. hostmaster.org.ua. 2008041495 28800 7200 604800 86400 ;; Query time: 9 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Wed Jun 3 13:47:59 2009 ;; MSG SIZE rcvd: 84 |
#dig gaz21.org.ua
; <<>> DiG 9.6.0-P1 <<>> gaz21.org.ua ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17762 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;gaz21.org.ua. IN A ;; ANSWER SECTION: gaz21.org.ua. 14400 IN A 193.178.144.126 ;; AUTHORITY SECTION: gaz21.org.ua. 14400 IN NS ns5.http-host.net. gaz21.org.ua. 14400 IN NS ns6.http-host.net. ;; ADDITIONAL SECTION: ns5.http-host.net. 172799 IN A 75.125.198.199 ns6.http-host.net. 172800 IN A 75.125.206.77 ;; Query time: 249 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Wed Jun 3 13:48:48 2009 ;; MSG SIZE rcvd: 127 |
#wh
whatis whereis which while whiptail who whoami whois |
#who
who whoami whois |
#whois 193.178.144.126
% This is the RIPE Whois query server #1. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag. % Information related to '193.178.144.0 - 193.178.147.255' inetnum: 193.178.144.0 - 193.178.147.255 netname: MIROHOST ... UKRAINE phone: +380442010102 fax-no: +380445216178 admin-c: MMU-RIPE admin-c: GSA-RIPE mnt-ref: RIPE-NCC-HM-MNT mnt-ref: MIROHOST-MNT abuse-mailbox: noc@mirohost.net mnt-by: RIPE-NCC-HM-MNT source: RIPE # Filtered |
#ssh 10.0.35.100
Host key fingerprint is 69:b5:3e:1a:9a:b7:c3:c3:96:03:c7:b7:b4:69:1d:3b +--[ RSA 2048]----+ | | | | | . | | o . | | .S . | | ..o.o . | | =.+o= o | | oXo=.E | ... root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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 14:30:47 2009 from linux11.unix.nt Agent pid 13439 l3-agent is already running: pid=1854; pidfile=/root/.lilalo/l3-agent.pid |
#w
14:27:15 up 4:56, 3 users, load average: 0,01, 0,01, 0,00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 09:32 4:56m 1:35 0.26s x-session-manager user pts/0 :0.0 09:32 0.00s 0.33s 0.29s script -f -c bash -q /home/user/.lilalo//1788125766856913709-1244010766.script user pts/4 :0.0 09:54 2:32 0.38s 0.38s ssh root@10.0.35.100 |
#scp -rp 192.168.15.7 /tmp 192.168.15.6 /tmp
cp: невозможно выполнить stat для `192.168.15.7': Нет такого файла или каталога cp: невозможно скопировать каталог, `/tmp', в самого себя, `/tmp/tmp' cp: невозможно выполнить stat для `192.168.15.6': Нет такого файла или каталога |
# /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) #* * * * * root /bin/date|sendxmpp ujey@freetalk.org.ua;sleep 30;/bin/date|sendxmpp ujey@freetalk.org.ua #*/2 * * * * root /bin/date >> /tmp/date2.log #
ssh_config sshd_config ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub
# Package generated configuration file # See the sshd(8) manpage for details # What ports, IPs and protocols we listen for Port 22 # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress :: #ListenAddress 0.0.0.0 Protocol 2 # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key #Privilege Separation is turned on for security UsePrivilegeSeparation yes # Lifetime and size of ephemeral version 1 server key KeyRegenerationInterval 3600 ServerKeyBits 768 # Logging SyslogFacility AUTH LogLevel INFO # Authentication: LoginGraceTime 120 PermitRootLogin yes StrictModes yes RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys # Don't read the user's ~/.rhosts and ~/.shosts files IgnoreRhosts yes # For this to work you will also need host keys in /etc/ssh_known_hosts RhostsRSAAuthentication no # similar for protocol version 2 HostbasedAuthentication no # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication #IgnoreUserKnownHosts yes # To enable empty passwords, change to yes (NOT RECOMMENDED) PermitEmptyPasswords no # Change to yes to enable challenge-response passwords (beware issues with # some PAM modules and threads) ChallengeResponseAuthentication no # Change to no to disable tunnelled clear text passwords #PasswordAuthentication yes # Kerberos options #KerberosAuthentication no #KerberosGetAFSToken no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes # GSSAPI options #GSSAPIAuthentication no #GSSAPICleanupCredentials yes X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes #UseLogin no #MaxStartups 10:30:60 #Banner /etc/issue.net # Allow client to pass locale environment variables AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes
authorized_keys config id_dsa id_dsa.pub known_hosts
authorized_keys autorized_keys
ssh-dss AAAAB3NzaC1kc3MAAACBAPM7secFkeM6KVrBL00ogESqHhZsItP2Pe2+hNt1FSvIZlNgFOvQUnAoC0TNVv8nASnoii/j4Ts2QNVe68Ox66WcXkV1ybHo9k75Bvm66mn0EZmhd7CfiQb2i+frZlM0TxDCPVBE8245M+5nU0neihE7OkGy6Y+fUT9/5PCREzOfAAAAFQDlSO+CParevDU1EMnFnyCWgHrgLwAAAIEA6xZUtORCvJDQAdLmfLkW4bfge5gzYuLkf3eWy8hbe5yWlHATC/YM1QefDzHZOJEvBjN6UXJ8AdeTa/9Qh6xysWsE66HJQhnfRLqG1gynsIqeaF0i8c1P48zwsNfCjWv8jgHdg/SXeAFemawY8q7eITZvdmun2Y3n ssh-dss AAAAB3NzaC1kc3MAAACBAKL1xGnFf0D96WRFczA7TVWpcuBnQPKayZtQBWUqEpO+dGVSwcQbhf5fwd66l0ild7MjOH6uoL6tGnNzco9V01/cMHHZB6m75i01BLPbAJ9jc7S8mAnHaybUB5csubBNr93F5W5ywex4jraJB9ekqOt6PhD/0tmiSimfTIrFAPRLAAAAFQDI2x0vw/g1TgsoVHeCqwcm0h7DwQAAAIEAjmf3nGiAJhrLIo5xUks7Vd4wwJ/48gsDvgiijvbAsWw3DfGhOI86asyvlLSw1E1/CMgl7lTy88fwO9xw4QGAgwRecZ3MEdrOO0acRHPwLg7e0KMvGvLtWo6gdSdUVCfIyncHglKla7hdYOXm311PK+O+r9nAVKKn ssh-dss AAAAB3NzaC1kc3MAAACBAPL7iK4O8l449LIBxI2rSyWsvMzk9Jyj4qTASuNIDHD4SBf1Qzre3xXCxN+PBOTTIqXl1o4pImJr7kHwvlIc8T/TzmXndmeNzRjhAEZOr0/kCkbolbIJZZlFiVWTxBjZRsQoLsCwsGjYZLH2FQ0anPQPbgSxqvwopENVkpOHQG5jAAAAFQCq3cLCW/VlmBfUF6dJEbrwzWZNwwAAAIEAjD0u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CUXumdeMQ9yIbfT3YxMJskqdpQEkLiCrqm2/0wEMUh0qqTzbAGdqBM+z3nWPeZE5EGdIVuVf++iV4GwvhWVlx5NDONG6tGfmpF9P4KV99/J1jhjf5s+ssMYJAbEgPlbi45ZLfV9uzIuk8RhN3yv6+kcg9K3dNLeaq+QB8pNAxqVNitOh13G2jyxD7ea3IDTiH1q8WfsSSJIwtN3AQsP |1|w59j7JqgciwJdCp8iJlk9Rti9wc=|i/emCPSyk4t6WpWsq/vviHm5Nfw= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6XXgrwWrb1ZSYdGOCZziwKRREKfhW++NiammHOqMhMUDs67dwxdjYJjp9/bjChmCW7wA3djmPkFjUHeC/xbvaNTFO+NCS0iwbewz+Srl8E283aQUkTRuXdREQMkL7N3endUqOB7bROJ3oxMY7nURectgkHynnZ2hA1WANrPs8XpwV2bYuwpB9hrvJMw6+sxNojvp28lcDLnEXXh9pOuKkdkVtoUPGhRNr/IliRA2LRZg3QuUSkiEVL0R78k6siMV93W1J9ZhslSpW8XijCjkK4ZVyk1IXBVKAgltZRjVfJpizNF |1|x1MWyYaYhNKyh6rkjOiETCsq/iQ=|zQpD4aam7A7yr5cQSjg1I+h0RHc= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAHEAzhDiIBZW+W7fAlcc/EocYkS6FBw7+YwzZxqjyFwu7+QoRlk5EC8oiWdLu1vW0BjmPDxD/8k2xYK+vMaxne4zBpMLT09RTj9eUSll3W1JZO6IHZqv8lZQ8yTtAVzyDVpjB/XtOyI9ejIrbVQIJ+j7Uw==
Время первой команды журнала | 17:43:18 2009- 6- 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:27:15 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.85 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.44 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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