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

Содержание

Журнал

Среда (06/03/09)

/dev/pts/1
12:07:00
#ssh 192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun  3 12:05:33 2009 from linux1.unix.nt
l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/6
12:07:30
#cat /root/.ssh/config
Host *
#      VisualHostKey yes     (vizualizaciya key)
#      ForwardAgent yes      (dlya forvardinga agenta)
/dev/pts/1
12:08:02
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent
12:08:09
#ssh 192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun  3 12:06:37 2009 from linux1.unix.nt
l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid
12:08:39
#ssh-agent -k
SSH_AGENT_PID not set, cannot kill agent
12:09:00
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent
12:09:15
#ssh-agent -k
SSH_AGENT_PID not set, cannot kill agent
12:09:58
#ssh 192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun  3 12:08:02 2009 from linux1.unix.nt
l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid
12:10:22
#ssh 192.168.15.3
ssh: connect to host 192.168.15.3 port 22: Connection refused
12:10:25
#ssh 192.168.15.4
ssh: connect to host 192.168.15.4 port 22: Connection refused
12:10:31
#ssh 192.168.15.5
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux5 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:42:04 2009 from linux13.unix.nt
l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid
12:10:43
#exit
exit
Connection to 192.168.15.5 closed.
12:12:04
#cat /etc/ssh/ssh_config
# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
...
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#    VisualHostKey yes
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
/dev/pts/8
12:12:52
#ssh 192.168.15.1
ssh: connect to host 192.168.15.1 port 30022: Connection refused
12:13:55
#ssh -X 192.168.15.1
Enter passphrase for key '/root/.ssh/id_dsa':
Enter passphrase for key '/root/.ssh/id_dsa':
Enter passphrase for key '/root/.ssh/id_dsa':
root@192.168.15.1's password:
l3-agent is already running: pid=4276; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/1
12:14:37
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
  2 {
  3   ssh-agent > ~/.ssh-agent
    }
  4   eval `< ~/.ssh-agent`
  5   ssh-add
  6 }     -q ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent
  7
  8 if [ -e ~/.ssh-agent ]
  9 then
 10 eval `cat ~/.ssh-agent`
...
~
~
~
~
~
~
~
~
~
".bash_profile" 18L, 251C записано
12:14:55
#ssh 192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun  3 12:10:31 2009 from linux13.unix.nt
l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/11
12:15:35
#ssh 192.168.15.5
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux5 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:10:42 2009 from linux1.unix.nt
l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid
12:15:54
#exit
exit
Connection to 192.168.15.5 closed.
/dev/pts/1
12:16:11
#vi .bash_profile
12:16:21
#~
  2 #  ssh-agent > ~/.ssh-agent
    #  eval `< ~/.ssh-agent`
  3 #  ssh-addt > ~/.ssh-agent
    #}
  4 # eval `< ~/.ssh-agent`
    #if [ -e ~/.ssh-agent ]
  5 #then-add
    #eval `cat ~/.ssh-agent`
  6 # grep -q ssh-agent /proc/$SSH_AGENT_PID/cmdline >& /dev/null || load_agent
    #else
...
~
~
~
~
~
~
~
~
~
".bash_profile" 18L, 265C записано
12:17:01
#ssh 192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux2 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun  3 12:14:49 2009 from linux1.unix.nt
l3-agent is already running: pid=8287; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/1
12:18:07
#ssh 192.168.15.5
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux5 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:15:54 2009 from linux1.unix.nt
l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid
12:18:24
#exit
exit
Connection to 192.168.15.5 closed.
12:18:48
#ssh 192.168.15.5
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux5 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:18:24 2009 from linux1.unix.nt
l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid
12:19:00
#exit
exit
Connection to 192.168.15.5 closed.
12:19:04
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent
12:19:43
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent
/dev/pts/6
12:20:15
#date
Срд Июн  3 12:20:38 EEST 2009
12:20:38
#ssh -X root@192.168.15.5 xclock
Enter passphrase for key '/root/.ssh/id_dsa':
Enter passphrase for key '/root/.ssh/id_dsa':
Enter passphrase for key '/root/.ssh/id_dsa':
root@192.168.15.5's password:
Error: Can't open display:
/dev/pts/1
12:20:39
#ssh 192.168.15.5
Enter passphrase for key '/root/.ssh/id_dsa':
Linux linux5 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:19:00 2009 from linux1.unix.nt
l3-agent is already running: pid=7633; pidfile=/root/.lilalo/l3-agent.pid
12:21:23
#exit
exit
Connection to 192.168.15.5 closed.
12:21:52
#vi /etc/ssh/ssh_config
/dev/pts/6
12:23:14
#xclock
Error: Can't open display:
/dev/pts/1
12:23:16
#xclock
Error: Can't open display:
12:23:28
#exit
exit
Connection to 192.168.15.5 closed.
12:23:41
#xclock
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Warning: Missing charsets in String to FontSet conversion
^C
/dev/pts/6
12:23:42
#bc
bc 1.06.94
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
(interrupt) use quit to exit.
/dev/pts/8
12:23:52
#exit
exit
Connection to 192.168.15.1 closed.
/dev/pts/6
12:24:04
#xclock
Error: Can't open display:
12:24:12
#ssh -X root@192.168.15.8 xclock
root@192.168.15.8's password:
Permission denied, please try again.
root@192.168.15.8's password:
Permission denied, please try again.
root@192.168.15.8's password:
Permission denied (publickey,password).
/dev/pts/8
12:24:31
#xclock
Error: Can't open display: localhost:10.0
/dev/pts/12
12:24:41
#vi /etc/X11/sshd_c
12:24:48
#~
 39 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
 40 #IgnoreUserKnownHosts yes
 41
 42 # To enable empty passwords, change to yes (NOT RECOMMENDED)
 43 PermitEmptyPasswords no
 44
 45 # Change to yes to enable challenge-response passwords (beware issues with
 46 # some PAM modules and threads)
 47 ChallengeResponseAuthentication no
 48
...
              pt 10:30:60                                             69,12         57%µÑ€Ñ…у
 71 #Banner /etc/issue.net
 72
 73 # Allow client to pass locale environment variables
 74 AcceptEnv LANG LC_*
 75
 76 Subsystem sftp /usr/lib/openssh/sftp-server
 77
 78 UsePAM yes
 70  10:30:60                                                         78,1        Внизу
/dev/pts/1
12:24:49
#ls -l /etc/ | grep ssh*
-rw-r--r-- 1 root root      312 Май 10 11:23 email-addresses
-rw-r--r-- 1 root root       36 Апр 24 22:21 issue
-rw-r--r-- 1 root root       29 Апр 24 22:21 issue.net
-rw-r--r-- 1 root root      475 Авг 28  2006 nsswitch.conf
-rw-r--r-- 1 root root     1287 Май 30 14:07 passwd
-rw------- 1 root root     1233 Май 29 12:36 passwd-
drwxr-xr-x 3 root root     4096 Июн  3 12:24 ssh
drwxr-xr-x 4 root root     4096 Ноя 25  2008 ssl
/dev/pts/6
12:25:09
#ssh -X root@192.168.15.1 xclock
Enter passphrase for key '/root/.ssh/id_dsa':
root@192.168.15.1's password:
Error: Can't open display:
12:25:28
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.8 'cat >> ~/.ssh/authorized_keys'
root@192.168.15.8's password:
Permission denied, please try again.
root@192.168.15.8's password:
Permission denied, please try again.
root@192.168.15.8's password:
12:26:17
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.8 'cat >> ~/.ssh/authorized_keys'
Enter passphrase for key '/root/.ssh/id_dsa':
root@192.168.15.8's password:
/dev/pts/1
12:27:27
#find / -name sshd
/usr/sbin/sshd
/etc/pam.d/sshd
/home/user/etc-2009.05.26/pam.d/sshd
/var/run/sshd
12:28:23
#find / -name sshd*
/usr/sbin/sshd
/usr/share/vim/vim72/syntax/sshdconfig.vim
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sshd.8.gz
/etc/ssh/sshd_config
/etc/pam.d/sshd
/home/user/etc-2009.05.26/ssh/sshd_config
/home/user/etc-2009.05.26/pam.d/sshd
/var/run/sshd
/var/run/sshd.pid
12:28:30
#cat /etc/ssh/sshd_config ? less