/l3/users/eb/2009/linux1/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 |
|
#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 |
#cat /root/.ssh/config
Host * # VisualHostKey yes (vizualizaciya key) # ForwardAgent yes (dlya forvardinga agenta) |
#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 |
#ssh-agent -k
SSH_AGENT_PID not set, cannot kill agent |
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent |
#ssh-agent -k
SSH_AGENT_PID not set, cannot kill agent |
#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 |
#ssh 192.168.15.3
ssh: connect to host 192.168.15.3 port 22: Connection refused |
#ssh 192.168.15.4
ssh: connect to host 192.168.15.4 port 22: Connection refused |
#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 |
#exit
exit Connection to 192.168.15.5 closed. |
#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 |
#ssh 192.168.15.1
ssh: connect to host 192.168.15.1 port 30022: Connection refused |
#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 |
#~ +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 записано |
#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 |
#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 |
#exit
exit Connection to 192.168.15.5 closed. |
#~
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 записано |
#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 |
#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 |
#exit
exit Connection to 192.168.15.5 closed. |
#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 |
#exit
exit Connection to 192.168.15.5 closed. |
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent |
#eval `ssh-agent -k`
SSH_AGENT_PID not set, cannot kill agent |
#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: |
#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 |
#exit
exit Connection to 192.168.15.5 closed. |
#vi /etc/ssh/ssh_config
|
#exit
exit Connection to 192.168.15.5 closed. |
#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 |
#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. |
#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). |
#~
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 ÐÐ½Ð¸Ð·Ñ |
#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 |
#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: |
#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: |
#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: |
#find / -name sshd
/usr/sbin/sshd /etc/pam.d/sshd /home/user/etc-2009.05.26/pam.d/sshd /var/run/sshd |
#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 |
#cat /etc/ssh/sshd_config ? less |