/l3/users/bas/2011-03/linux5.unix.bas/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#vim /etc/hosts.allow
--- /tmp/l3-saved-3781.6480.16710 2011-04-06 12:16:03.000000000 +0600 +++ /etc/hosts.allow 2011-04-06 12:16:35.000000000 +0600 @@ -3,4 +3,4 @@ # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # - +sshd = 127.0.0.1 192.168.15.5 |
#/etc/init.d/sshd restart
Stopping sshd: [ OK ] Starting sshd: [ OK ] |
#vim /etc/hosts.deny
--- /tmp/l3-saved-3781.12122.24213 2011-04-06 12:18:02.000000000 +0600 +++ /etc/hosts.deny 2011-04-06 12:18:20.000000000 +0600 @@ -6,4 +6,4 @@ # The portmap line is redundant, but it is left to remind you that # the new secure portmap uses hosts.deny and hosts.allow. In particular # you should know that NFS uses portmap! -# sshd = ALL +sshd : ALL |
#vim /etc/hosts.allow
--- /tmp/l3-saved-3781.12632.26231 2011-04-06 12:18:22.000000000 +0600 +++ /etc/hosts.allow 2011-04-06 12:19:09.000000000 +0600 @@ -3,4 +3,4 @@ # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # -# sshd = 127.0.0.1 192.168.15.5 +sshd: 127.0.0.1 192.168.15.5 192.168.15.253 |
#ssh user@192.168.15.1
Last login: Wed Apr 6 12:06:15 2011 from linux1 l3-agent is already running: pid=3667; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit Connection to 192.168.15.1 closed. |
#ssh user@192.168.15.1
Last login: Wed Apr 6 12:22:19 2011 from linux5.unix.bas l3-agent is already running: pid=3667; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit Connection to 192.168.15.1 closed. |
#ssh user@192.168.15.1
Last login: Wed Apr 6 12:22:48 2011 from linux5.unix.bas l3-agent is already running: pid=3667; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit Connection to 192.168.15.1 closed. |
#ssh user@192.168.15.1
![]() ssh_exchange_identification: Connection closed by remote host |