Chinaunix首页 | 论坛 | 博客
  • 博客访问: 66995
  • 博文数量: 36
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 410
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-04 12:39
文章分类

全部博文(36)

文章存档

2010年(1)

2009年(35)

我的朋友
最近访客

分类: LINUX

2009-04-10 14:52:49


介绍了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就表示启动了

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

raymond19842009-04-10 14:55:33

错误1 telnet server 长时间没有任何响应 可以disable IPV6试试 vim /etc/modprobe.d/aliases 注释掉alias net-pf-10 ipv6 错误2 Trying 172.20.52.63... telnet: Unable to connect to remote host: Connection refused telnet 服务没有开启