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

Содержание

Журнал

Среда (04/06/11)

/dev/pts/4
08:15:57
#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
08:16:35
#/etc/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
08:17:20
#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
08:18:20
#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
08:22:14
#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
08:22:20
$exit
exit
Connection to 192.168.15.1 closed.
08:22:27
#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
08:22:48
$exit
exit
Connection to 192.168.15.1 closed.
08:22:51
#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
08:23:30
$exit
exit
Connection to 192.168.15.1 closed.
08:23:32
#ssh user@192.168.15.1
ssh_exchange_identification: Connection closed by remote host
/dev/pts/7
08:23:51