Chinaunix首页 | 论坛 | 博客
  • 博客访问: 762006
  • 博文数量: 790
  • 博客积分: 40560
  • 博客等级: 大将
  • 技术积分: 5065
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-28 16:29
文章分类

全部博文(790)

文章存档

2011年(1)

2008年(789)

我的朋友

分类: LINUX

2008-08-28 17:11:57

 
1、安装xinetd以及telnetd
#apt-getinstallxinetdtelnetd

2、配置文件/etc/inetd.conf
#cat/etc/inetd.conf(如果存在就不需要了)
telnetstreamtcpnowaittelnetd/usr/sbin/tcpd/usr/sbin/in.telnetd

3.修改/etc/xinetd.conf
#catxinetd.conf
#Simpleconfigurationfileforxinetd
#
#Somedefaults,andinclude/etc/xinetd.d/

defaults
{

#Pleasenotethatyouneedalog_typelinetobeabletouselog_on_success
#andlog_on_failure.Thedefaultisthefollowing:
#log_type=SYSLOGdaemoninfo
instances=60
log_type=SYSLOGauthpriv
log_on_success=HOSTPID
log_on_failure=HOST
cps=2530
}

includedir/etc/xinetd.d

4.在/etc/xinetd.d/telnet并加入以下内容:
#default:on
#description:Thetelnetserverservestelnetsessions;ituses\
#unencryptedusername/passwordpairsforauthentication.
servicetelnet
{
disable=no
flags=REUSE
socket_type=stream
wait=no
user=root
server=/usr/sbin/in.telnetd
log_on_failure =USERID
}

5.重启机器或重启网络服务
#/etc/init.d/xinetdrestart

阅读(165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~