ubuntu14.04 telnet服务器与客户端安装
ubuntu14.04安装telnet翻译 2016年03月16日 19:44:22标签:telnet1、首先查看telnet运行状态netstat -a | grep telnet输出为空,表示没有开启该服务2、安装openbsd-inetdapt-get install openbsd-inetd如果已经安装过了,会提示已经安装过了,直接执行下面的步骤就可以了。3、安装telnetdapt-get install telnetd安装完之后,查看/etc/inetd.conf的内容会多了一行telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetdcat /etc/inetd.conf | grep telnet输出: telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd4、重启openbsd-inetd/etc/init.d/openbsd-inetd restart输出:* Restarting internet superserver inetd5、查看telnet运行状态netstat -a | grep telnet输出:tcp 0 0 :telnet :* LISTEN此时表明已经开启了telnet服务。6、telnet登陆测试telnet 127.0.0.1输出:Trying 127.0.0.1…Connected to 127.0.0.1.Escape character is '^
’. (停在这里的时候要按Ctrl+
然后回车)telnet> (表示登陆成功)==========================================转自:http://blog.csdn.net/qiuoooooo/article/details/52851472ubuntu14.04中安装telnet客户端 (亲测)一、首先查看telnet运行状态 #netstat -a | grep telnet输出为空,表示没有开启该服务二、安装openbsd-inetd 和 telnetd apt-get install openbsd-inetdapt-get install telnetd三、sudo vi /etc/inetd.conf 并加入以下一行 telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd四、sudo vi /etc/xinetd.conf 并加入以下内容: # 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 uselog_on_success# and log_on_failure. The default is the following :# log_type = SYSLOG daemon infoinstances = 60log_type = SYSLOG authprivlog_on_success = HOST PIDlog_on_failure = HOSTcps = 25 30}includedir /etc/xinetd.d五、sudo vi /etc/xinetd.d/telnet并加入以下内容: # default: on# description: The telnet server serves telnet sessions; it uses \# unencrypted username/password pairs for authentication.service telnet{disable = noflags = REUSEsocket_type = streamwait = no www.2cto.comuser = rootserver = /usr/sbin/in.telnetdlog_on_failure += USERID}六、重启ubuntu 即可。