Журнал лабораторных работ

Содержание

Журнал

Среда (09/12/07)

/dev/ttyp6
10:47:34
#cat id_rsa.pub | ssh root@192.168.15.242 'cat >> /root/.ssh/
uthorized_keys2'
Enter passphrase for key '/root/.ssh/id_dsa':
10:47:34
#cat id_rsa.pub | ssh root@192.168.15.242 'cat >> /root/.ssh/
uthorized_keys2'
Enter passphrase for key '/root/.ssh/id_dsa':
10:48:14
#ll
total 18
-rw-r--r--  1 root  wheel   800 Sep 11 16:33 authorized_keys
-rw-------  1 root  wheel   744 Sep 12 10:34 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:34 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:34 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:34 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:32 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:32 identity.pub
-rw-r--r--  1 root  wheel  3618 Sep 12 10:16 known_hosts
10:48:14
#ll
total 18
-rw-r--r--  1 root  wheel   800 Sep 11 16:33 authorized_keys
-rw-------  1 root  wheel   744 Sep 12 10:34 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:34 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:34 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:34 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:32 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:32 identity.pub
-rw-r--r--  1 root  wheel  3618 Sep 12 10:16 known_hosts
/dev/ttypa
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:47
#ll
total 26
-rw-------  1 root  wheel   645 Sep 12 10:46 authorized_keys
-rw-r--r--  1 root  wheel  1008 Sep 12 10:48 authorized_keys2
-rw-------  1 root  wheel   736 Sep 12 10:44 id_dsa
-rw-r--r--  1 root  wheel   608 Sep 12 10:44 id_dsa.pub
-rw-------  1 root  wheel  1743 Sep 12 10:42 id_rsa
-rw-r--r--  1 root  wheel   400 Sep 12 10:42 id_rsa.pub
-rw-------  1 root  wheel   981 Sep 12 10:40 identity
-rw-r--r--  1 root  wheel   645 Sep 12 10:40 identity.pub
-rw-------  1 root  wheel  4204 Sep 12 10:28 known_hosts
-rw-r--r--  1 root  wheel  3613 Sep 11 16:02 known_hosts.old
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:49
#exit
Connection to 192.168.15.242 closed.
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:48:58
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:07
#exit
Connection to 192.168.15.242 closed.
10:49:15
#ssh 192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Wed Sep 12 10:49:06 2007 from host237.unix.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 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.
...
   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
10:49:22
#exit
Connection to 192.168.15.242 closed.
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
10:49:27
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type 0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
...
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_rsa':
/dev/ttyp6
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.s
.shrc  .ssh/
10:51:07
#ll /home/user/.ssh/
total 4
-rw-r--r--  1 root  wheel   400 Sep 11 16:28 authorized_keys
-rw-r--r--  1 user  wheel  1812 Sep 11 16:46 known_hosts
10:51:07
#ll /home/user/.ssh/
total 4
-rw-r--r--  1 root  wheel   400 Sep 11 16:28 authorized_keys
-rw-r--r--  1 user  wheel  1812 Sep 11 16:46 known_hosts
10:55:34
#ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-Dvw7icmuot/agent.3536; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3537; export SSH_AGENT_PID;
echo Agent pid 3537;
10:55:34
#ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-Dvw7icmuot/agent.3536; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3537; export SSH_AGENT_PID;
echo Agent pid 3537;
10:55:34
#ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-Dvw7icmuot/agent.3536; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3537; export SSH_AGENT_PID;
echo Agent pid 3537;
/dev/ttype
10:56:51
#chown user:wheel /home/user/.ssh/authorized_keys

10:56:51
#chown user:wheel /home/user/.ssh/authorized_keys

10:56:51
#chown user:wheel /home/user/.ssh/authorized_keys

10:56:51
#chown user:wheel /home/user/.ssh/authorized_keys

/dev/ttyp6
11:05:16
#eval 'ssh-agent'
SSH_AUTH_SOCK=/tmp/ssh-nKqWE5LIkA/agent.3543; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3544; export SSH_AGENT_PID;
echo Agent pid 3544;
11:05:16
#eval 'ssh-agent'
SSH_AUTH_SOCK=/tmp/ssh-nKqWE5LIkA/agent.3543; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3544; export SSH_AGENT_PID;
echo Agent pid 3544;
11:05:16
#eval 'ssh-agent'
SSH_AUTH_SOCK=/tmp/ssh-nKqWE5LIkA/agent.3543; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3544; export SSH_AGENT_PID;
echo Agent pid 3544;
11:05:16
#eval 'ssh-agent'
SSH_AUTH_SOCK=/tmp/ssh-nKqWE5LIkA/agent.3543; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3544; export SSH_AGENT_PID;
echo Agent pid 3544;
11:06:43
#env
SHELL=/usr/local/bin/bash
TERM=xterm
L3_PARENT_TTY=/dev/ttyp6
L3_TAMPERED_EDITORS= vi ee vim
USER=root
FTP_PASSIVE_MODE=YES
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
MAIL=/var/mail/root
L3_SESSION_ID=26204184161143813802-1189579050
BLOCKSIZE=K
PWD=/root/.ssh
PS1=\[v2#\!#$?#$UID#$$#$(/bin/date +%s)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]
L3_HOME=/root/.lilalo/
HOME=/root
SHLVL=1
_=/usr/bin/env
OLDPWD=/root
11:06:54
#setenv
bash: setenv: command not found
11:06:54
#setenv
bash: setenv: command not found
11:06:54
#setenv
bash: setenv: command not found
11:06:54
#setenv
bash: setenv: command not found
11:07:15
#set
OPTERR=1
OPTIND=1
OSTYPE=freebsd6.2
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PIPESTATUS=([0]="127")
PPID=1502
PS1='\[v2#\!#$?#$UID#$$#$(/bin/date +%s)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]'
PS2='> '
PS4='+ '
PWD=/root/.ssh
...
        /bin/cp -- "$1" "$old_file" 2>/dev/null;
        /usr/local/bin/vim "$@" || ERR=$?;
        [ -e "$old_file" ] && diff "$old_file" "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        if [ 0 == 2 ]; then
            diff /dev/null "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        fi;
        /bin/rm "$old_file" 2>/dev/null;
        return $ERR;
    fi
}
11:07:15
#set
OPTERR=1
OPTIND=1
OSTYPE=freebsd6.2
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PIPESTATUS=([0]="127")
PPID=1502
PS1='\[v2#\!#$?#$UID#$$#$(/bin/date +%s)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]'
PS2='> '
PS4='+ '
PWD=/root/.ssh
...
        /bin/cp -- "$1" "$old_file" 2>/dev/null;
        /usr/local/bin/vim "$@" || ERR=$?;
        [ -e "$old_file" ] && diff "$old_file" "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        if [ 0 == 2 ]; then
            diff /dev/null "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        fi;
        /bin/rm "$old_file" 2>/dev/null;
        return $ERR;
    fi
}
11:07:15
#set
OPTERR=1
OPTIND=1
OSTYPE=freebsd6.2
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PIPESTATUS=([0]="127")
PPID=1502
PS1='\[v2#\!#$?#$UID#$$#$(/bin/date +%s)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]'
PS2='> '
PS4='+ '
PWD=/root/.ssh
...
        /bin/cp -- "$1" "$old_file" 2>/dev/null;
        /usr/local/bin/vim "$@" || ERR=$?;
        [ -e "$old_file" ] && diff "$old_file" "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        if [ 0 == 2 ]; then
            diff /dev/null "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        fi;
        /bin/rm "$old_file" 2>/dev/null;
        return $ERR;
    fi
}
11:07:15
#set
OPTERR=1
OPTIND=1
OSTYPE=freebsd6.2
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PIPESTATUS=([0]="127")
PPID=1502
PS1='\[v2#\!#$?#$UID#$$#$(/bin/date +%s)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]'
PS2='> '
PS4='+ '
PWD=/root/.ssh
...
        /bin/cp -- "$1" "$old_file" 2>/dev/null;
        /usr/local/bin/vim "$@" || ERR=$?;
        [ -e "$old_file" ] && diff "$old_file" "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        if [ 0 == 2 ]; then
            diff /dev/null "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        fi;
        /bin/rm "$old_file" 2>/dev/null;
        return $ERR;
    fi
}
11:07:15
#set
OPTERR=1
OPTIND=1
OSTYPE=freebsd6.2
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PIPESTATUS=([0]="127")
PPID=1502
PS1='\[v2#\!#$?#$UID#$$#$(/bin/date +%s)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]'
PS2='> '
PS4='+ '
PWD=/root/.ssh
...
        /bin/cp -- "$1" "$old_file" 2>/dev/null;
        /usr/local/bin/vim "$@" || ERR=$?;
        [ -e "$old_file" ] && diff "$old_file" "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        if [ 0 == 2 ]; then
            diff /dev/null "$1" >"$L3_HOME/$DIFFNAME" 2>/dev/null;
        fi;
        /bin/rm "$old_file" 2>/dev/null;
        return $ERR;
    fi
}
11:07:19
#man eval
11:07:19
#man eval
11:07:19
#man eval
11:07:19
#man eval
11:07:19
#man eval
11:07:19
#man eval
11:07:53
#eval 'ssh-agent'
SSH_AUTH_SOCK=/tmp/ssh-415PxFZL0t/agent.3596; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3597; export SSH_AGENT_PID;
echo Agent pid 3597;
11:08:24
#echo $SSH_AUTH_SOCK

11:09:26
#echo $SSH_AUTH_SOCK

11:09:26
#echo $SSH_AUTH_SOCK
/tmp/ssh-415PxFZL0t/agent.3596
11:09:26
#echo $SSH_AUTH_SOCK

11:09:26
#echo $SSH_AUTH_SOCK
/tmp/ssh-415PxFZL0t/agent.3596
11:09:26
#echo $SSH_AUTH_SOCK

11:09:26
#echo $SSH_AUTH_SOCK
/tmp/ssh-415PxFZL0t/agent.3596
11:09:29
#export SSH_AGENT_PID=3597

11:09:29
#export SSH_AGENT_PID=3597

11:09:29
#export SSH_AGENT_PID=3597

11:09:58
#echo $SSH_AGENT_PID
3597
11:09:58
#echo $SSH_AGENT_PID
3597
11:10:09
#ssh-add -l
The agent has no identities.
11:10:09
#ssh-add -l
The agent has no identities.
11:10:09
#ssh-add -l
The agent has no identities.
11:10:09
#ssh-add -l
The agent has no identities.
11:10:09
#ssh-add -l
The agent has no identities.
11:10:09
#ssh-add -l
The agent has no identities.
11:10:25
#ssh-add
Enter passphrase for /root/.ssh/id_rsa:
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)
Identity added: /root/.ssh/identity (root@fbsd3.unix.nt)
11:10:25
#ssh-add
Enter passphrase for /root/.ssh/id_rsa:
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)
Identity added: /root/.ssh/identity (root@fbsd3.unix.nt)
11:10:25
#ssh-add
Enter passphrase for /root/.ssh/id_rsa:
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)
Identity added: /root/.ssh/identity (root@fbsd3.unix.nt)

Статистика

Время первой команды журнала10:47:34 2007- 9-12
Время последней команды журнала11:10:25 2007- 9-12
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 5.94
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 0.38
Количество командных строк в единицу времени, команда/мин 4.42
Частота использования команд
ll19|=================| 17.76%
ssh17|===============| 15.89%
exit16|==============| 14.95%
ssh-add9|========| 8.41%
echo9|========| 8.41%
man6|=====| 5.61%
set5|====| 4.67%
eval5|====| 4.67%
setenv4|===| 3.74%
chown4|===| 3.74%
export3|==| 2.80%
ssh-agent3|==| 2.80%
/root/.ssh/2|=| 1.87%
>2|=| 1.87%
cat2|=| 1.87%
env1|| 0.93%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$