---
title: "telnet 介绍以及ubuntu配置（xinetd）"
author: "hellojyj"
date: "2014-10-18T20:28:59Z"
tags: []
categories: ["操作系统"]
slug: "telnet-ubuntu-xinetd"
draft: false
lastmod: "2014-10-18T20:28:59Z"
id: 2145127
url: "https://hellojyj.iteye.com/blog/2145127"
---

http://en.wikipedia.org/wiki/Telnet  
介绍了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就表示启动了