介绍了telnet的起源,解决的问题,解决的手段,限制,具体工作的原理,推荐。
http://www.cnblogs.com/liuweijian/archive/2005/09/12/235493.html
在ubuntu下安装telnet和xinetd
apt-get install telnetd ;telnet server
apt-get install xinetd ;super server, similar with Inetmgr in windows
$sudo vim /etc/xinetd.conf
#content as follow
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
$sudo vim /etc/xinetd.d/telnet
# conent
# default: on
# description: The telnet server serves telnet sessions
# unencrypted username/password pairs for authentication.
service telnet
{
disable = yes #我禁用了,改成no就可以使用
bind = #本机IP
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure+ = USERID
only_from = #允许那些IP连接
}
sudo /etc/init.d/xinetd start|restart
就可以启动
netstat -vat 你会看到telnet就表示启动了
阅读(1659) | 评论(1) | 转发(0) |