当前位置: 代码迷 >> 综合 >> 00002.新装linux配置telnet
  详细解决方案

00002.新装linux配置telnet

热度:79   发布时间:2024-01-15 23:21:50.0
新装linux后配置telnet:
要设置/etc/seceretty,/etc/hosts.allow和/etc/deny三个文件.

# more securetty
# This file defines which devices root can log in on.
# These are the ttys on the physical console:
console
tty1
tty2
tty3
tty4
tty5
tty6
# These are some remote ttys, and uncommenting them might be less than fully secure:
#ttyS0
#ttyS1
#ttyS2
#ttyS3
#ttyp0
#ttyp1
#ttyp2
#ttyp3
#ttyp4
#ttyp5
#ttyp6
#ttyp7
pts/0
pts/1
pts/2
pts/3
#pts/4
#pts/5
#pts/6
#pts/7
root@test:/etc # more hosts.allow
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided by
#               the '/usr/sbin/tcpd' server.
# Version:      @(#)/etc/hosts.allow    1.00    05/28/93
ALL:ALL
# End of hosts.allow.
root@test:/etc # more hosts.deny
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
# Version:      @(#)/etc/hosts.deny     1.00    05/28/93
# Author:       Fred N. van Kempen, <
waltje@uwalt.nl.mugnet.org
# End of hosts.deny.