/l3/users/11-06-2007/nt-bsdnet/fbsd2.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#ssh-keygen -l /etc/ssh/ssh_host_dsa_key
-G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Provide new passphrase. -P phrase Provide old passphrase. -p Change passphrase of private key file. -q Quiet. ... [root@fbsd2:~]# ssh_host_dsa_key ssh_host_dsa_key.pub ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
1024 79:3d:9f:41:13:81:b9:c7:84:ef:e9:7a:c4:17:cd:ab /etc/ssh/ssh_host_dsa_key.pub |
#ssh-keygen -l /etc/ssh/ssh_host_dsa_key
-G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Provide new passphrase. -P phrase Provide old passphrase. -p Change passphrase of private key file. -q Quiet. ... [root@fbsd2:~]# ssh_host_dsa_key ssh_host_dsa_key.pub ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
1024 79:3d:9f:41:13:81:b9:c7:84:ef:e9:7a:c4:17:cd:ab /etc/ssh/ssh_host_dsa_key.pub |
#ssh-keygen -l /etc/ssh/ssh_host_dsa_key
-G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Provide new passphrase. -P phrase Provide old passphrase. -p Change passphrase of private key file. -q Quiet. ... [root@fbsd2:~]# ssh_host_dsa_key ssh_host_dsa_key.pub ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
1024 79:3d:9f:41:13:81:b9:c7:84:ef:e9:7a:c4:17:cd:ab /etc/ssh/ssh_host_dsa_key.pub |
#ls .ssh/
known_hosts |
#ls .ssh/
known_hosts |
#ls .ssh/
known_hosts |
#ls .ssh/
known_hosts |
#ssh-keygen
-W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. [root@fbsd2:~]# ssh-keygen -l /etc/ssh/ssh_host_dsa_key ssh_host_dsa_key ssh_host_dsa_key.pub [root@fbsd2:~]# ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub 1024 79:3d:9f:41:13:81:b9:c7:84:ef:e9:7a:c4:17:cd:ab /etc/ssh/ssh_host_dsa_key.p ub [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ... [root@fbsd2:~]# Generating public/private rsa key pair. ------------------------------------------------------------------------------- [root@fbsd2:~]# Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: .nt cat ~/.ssh/config Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is:nt@net.nt cat ~clint/.ssh/config a4:a8:87:6a:b0:8c:3b:e7:49:c8:8a:09:e7:74:05:7c root@fbsd2.net.nt Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -t dsa
[root@fbsd2:~]# ls .ssh/ known_hosts [root@fbsd2:~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ... [root@fbsd2:~]# 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: .nt cat ~/.ssh/config 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:nt@net.nt cat ~clint/.ssh/config fe:e6:f5:2d:d8:07:dc:07:01:e7:22:4e:25:df:c9:3e root@fbsd2.net.nt Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -t dsa
[root@fbsd2:~]# ls .ssh/ known_hosts [root@fbsd2:~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ... [root@fbsd2:~]# 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: .nt cat ~/.ssh/config 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:nt@net.nt cat ~clint/.ssh/config fe:e6:f5:2d:d8:07:dc:07:01:e7:22:4e:25:df:c9:3e root@fbsd2.net.nt Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -t dsa
[root@fbsd2:~]# ls .ssh/ known_hosts [root@fbsd2:~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ... [root@fbsd2:~]# 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: .nt cat ~/.ssh/config 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:nt@net.nt cat ~clint/.ssh/config fe:e6:f5:2d:d8:07:dc:07:01:e7:22:4e:25:df:c9:3e root@fbsd2.net.nt Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#ssh-keygen -t dsa
[root@fbsd2:~]# ls .ssh/ known_hosts [root@fbsd2:~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ... [root@fbsd2:~]# 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: .nt cat ~/.ssh/config 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:nt@net.nt cat ~clint/.ssh/config fe:e6:f5:2d:d8:07:dc:07:01:e7:22:4e:25:df:c9:3e root@fbsd2.net.nt Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#cat .ssh/id_rsa.pub
for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: a4:a8:87:6a:b0:8c:3b:e7:49:c8:8a:09:e7:74:05:7c root@fbsd2.net.nt [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh-keygen -t dsa Generating public/private dsa key pair. ... [root@fbsd2:~]# ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvuyf3Us5InNWVAOt7e+DvPGrB/868/c1917o+brm/pRjnirTd5lzaBrZcMxelT4qJoDDB0mdghQL7j87YyP80yYEf5ORN0VuxSuzeN5w8E3+c9494MHu9fbA7I0wN2gt3alx6rmwbOX6272YdW6AAkFh2QOLZJYohSlkHzl3+6Mmfw6C/jSLtIkW52VQpqrl57PdT2x1TJtidutmoOzSaAk+I2msOxmjKNdmg2kMH1vn9B5PkQkL+oSk9CLi9xGyqpu3LVTmSbELTFUazHToD1BIe6cImhQOKNFQw+O8lNwtNsPiRltjanLH8A9Bq11NgW ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#cat .ssh/id_rsa.pub
for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: a4:a8:87:6a:b0:8c:3b:e7:49:c8:8a:09:e7:74:05:7c root@fbsd2.net.nt [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh-keygen -t dsa Generating public/private dsa key pair. ... [root@fbsd2:~]# ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvuyf3Us5InNWVAOt7e+DvPGrB/868/c1917o+brm/pRjnirTd5lzaBrZcMxelT4qJoDDB0mdghQL7j87YyP80yYEf5ORN0VuxSuzeN5w8E3+c9494MHu9fbA7I0wN2gt3alx6rmwbOX6272YdW6AAkFh2QOLZJYohSlkHzl3+6Mmfw6C/jSLtIkW52VQpqrl57PdT2x1TJtidutmoOzSaAk+I2msOxmjKNdmg2kMH1vn9B5PkQkL+oSk9CLi9xGyqpu3LVTmSbELTFUazHToD1BIe6cImhQOKNFQw+O8lNwtNsPiRltjanLH8 ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#cat .ssh/id_rsa.pub
for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: a4:a8:87:6a:b0:8c:3b:e7:49:c8:8a:09:e7:74:05:7c root@fbsd2.net.nt [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh-keygen -t dsa Generating public/private dsa key pair. ... [root@fbsd2:~]# ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvuyf3Us5InNWVAOt7e+DvPGrB/868/c1917o+brm/pRjnirTd5lzaBrZcMxelT4qJoDDB0mdghQL7j87YyP80yYEf5ORN0VuxSuzeN5w8E3+c9494MHu9fbA7I0wN2gt3alx6rmwbOX6272YdW6AAkFh2QOLZJYohSlkHzl3+6Mmfw6C/jSLtIkW52VQpqrl57PdT2x1TJtidutmoOzSaAk+I2msOxmjKNdmg2kMH1vn9B5PkQkL+oSk9CLi9xGyqpu3LVTmSbELTFUazHToD1BIe6cImhQOKNFQw+O8lNwtNsPiRltjanLH8A9B ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#cat .ssh/id_rsa.pub
for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: a4:a8:87:6a:b0:8c:3b:e7:49:c8:8a:09:e7:74:05:7c root@fbsd2.net.nt [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh-keygen -t dsa Generating public/private dsa key pair. ... [root@fbsd2:~]# ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvuyf3Us5InNWVAOt7e+DvPGrB/868/c1917o+brm/pRjnirTd5lzaBrZcMxelT4qJoDDB0mdghQL7j87YyP80yYEf5ORN0VuxSuzeN5w8E3+c9494MHu9fbA7I0wN2gt3alx6rmwbOX6272YdW6AAkFh2QOLZJYohSlkHzl3+6Mmfw6C/jSLtIkW52VQpqrl57PdT2x1TJtidutmoOzSaAk+I2msOxmjKNdmg2kMH1vn9B5PkQkL+oSk9CLi9xGyqpu3LVTmSbELTFUazHToD1BIe6cImhQOKNFQw+O8lNwtNsPiRltjanLH8A ------------------------------------------------------------------------------- [root@fbsd2:~]# [root@fbsd2:~]# [root@fbsd2:~]# ssh clint@net.nt cat ~/.ssh/config clint@net.nt's password: cat: /root/.ssh/config: Permission denied [root@fbsd2:~]# ssh clint@net.nt cat ~clint/.ssh/config clint@net.nt's password: Host m01 m02 m03 m04 m05 m06 m07 m08 m09 |
#cat .ssh/id_rsa.pub | ssh 192.168.16.21
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.21
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.21
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.21
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.21
|
#cat .ssh/id_rsa.pub
|
#ssh fbsd1
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh fbsd1
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh fbsd1
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh fbsd1
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#touch .hushlogin
|
#touch .hushlogin
|
#touch .hushlogin
|
#touch .hushlogin
|
#ssh fbsd1
Removing stale pidfile |
#ssh fbsd1
Removing stale pidfile |
#ssh fbsd1
Removing stale pidfile |
#ssh fbsd1
Removing stale pidfile |
#exit
Connection to fbsd1.net.nt closed. |
#exit
Connection to fbsd1.net.nt closed. |
#exit
Connection to fbsd1.net.nt closed. |
#exit
Connection to fbsd1.net.nt closed. |
#exit
2 =1SU=1Ss=1SeUser=1S =1Su=1Ss=1Seuser39m ~ ~ ~ ~ ~ ~ ~ ~ ~ ... [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorize _keys'fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~Connection to fbsd1.net.nt closed. [r [r cl ca [r cl Ho |
#exit
2 =1SU=1Ss=1SeUser=1S =1Su=1Ss=1Seuser39m ~ ~ ~ ~ ~ ~ ~ ~ ~ ... [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~u d_keys'fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~Connection to fbsd1.net.nt closed. [r [r cl ca [r cl Ho |
#exit
2 =1SU=1Ss=1SeUser=1S =1Su=1Ss=1Seuser39m ~ ~ ~ ~ ~ ~ ~ ~ ~ ... [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user ized_keys'fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~Connection to fbsd1.net.nt closed. [r [r cl ca [r cl Ho |
#vim .ssh/config
|
#vim .ssh/config
|
#vim .ssh/config
|
#vim .ssh/config
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user/.ssh/autho
~ ~ ~ ~ -- INSERT -- [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user/.ssh/autho ^[[A^[[A^[[B^[[B^C [root@fbsd2:~]# [root@fbsd2:~]# vim .ssh/config ... d_keys' ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ^[[A^[[A^[[B^[[B^C [r cl ca [r cl Ho |
#cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user/.ssh/autho
~ ~ ~ ~ -- INSERT -- [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user/.ssh/autho ^[[A^[[A^[[B^[[B^C [root@fbsd2:~]# [root@fbsd2:~]# vim .ssh/config ... d_keys' ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ^[[A^[[A^[[B^[[B^C [r cl ca [r cl Ho |
#cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user/.ssh/autho
~ ~ ~ ~ -- INSERT -- [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~/.ssh/authorized [root@fbsd2:~]# cat .ssh/id_rsa.pub | ssh 192.168.16.1 'cat >> ~user/.ssh/autho ^[[A^[[A^[[B^[[B^C [root@fbsd2:~]# [root@fbsd2:~]# vim .ssh/config ... d_keys' ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ^[[A^[[A^[[B^[[B^C [r cl ca [r cl Ho |
#vim .ssh/config
|
#vim .ssh/config
|
#vim .ssh/config
|
#vim .ssh/config
|
#vim .ssh/config
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.2
|
#vim .ssh/config
|
#ssh fbsd1
=1S.=1S =1S.=1Sb=1Sa=1Ss=1Sh=1Sr=1Sc=1Se use the following resources: o Security advisories and updated errata information for all releases are ~ ~ ~ ~ ~ ~ ~ ~ ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. [user@fbsd1 ~]$ . .bashrc |
#ssh fbsd1
Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. [user@fbsd1 ~]$ . .bashrc |
#ssh fbsd1
Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. [user@fbsd1 ~]$ . .bashrc |
#ssh fbsd1
Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. [user@fbsd1 ~]$ . .bashrc |
$vim .bash_profile
|
$vim .bash_profile
|
$vim .bash_profile
|
$vim .bash_profile
|
#ssh fbsd1
Last login: Wed Jun 13 15:45:02 2007 from fbsd2.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RC1 (GENERIC_WITH_IPFW) #0: Tue Jun 12 02:27:57 EEST 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh fbsd1
Last login: Wed Jun 13 15:45:02 2007 from fbsd2.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RC1 (GENERIC_WITH_IPFW) #0: Tue Jun 12 02:27:57 EEST 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh fbsd1
Last login: Wed Jun 13 15:45:02 2007 from fbsd2.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RC1 (GENERIC_WITH_IPFW) #0: Tue Jun 12 02:27:57 EEST 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh fbsd1
Last login: Wed Jun 13 15:45:02 2007 from fbsd2.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RC1 (GENERIC_WITH_IPFW) #0: Tue Jun 12 02:27:57 EEST 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
$exit
Connection to fbsd1.net.nt closed. |
$exit
Connection to fbsd1.net.nt closed. |
$exit
Connection to fbsd1.net.nt closed. |
$exit
Connection to fbsd1.net.nt closed. |
#ssh-keygen --help
-C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. |
#ssh-keygen --help
-e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Provide new passphrase. ... -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 --help
-e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Provide new passphrase. ... -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 --help
-e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -M memory Amount of memory (MB) to use for generating DH-GEX moduli. -N phrase Provide new passphrase. ... -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. |
$exit
Connection to fbsd1.net.nt closed. |
$exit
Connection to fbsd1.net.nt closed. |
$exit
Connection to fbsd1.net.nt closed. |
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#ssh-keygen --help | less
|
#vim .ssh/config
|
#vim .ssh/config
|
Время первой команды журнала | 15:33:15 2007- 6-13 | ||||||||||||||||||||||||||||||
Время последней команды журнала | 15:46:14 2007- 6-13 | ||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.22 | ||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 7.78 | ||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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