感谢支持
我们一直在努力

Ubuntu 12.04 Telnet服务设置

刚安装的Ubuntu 12.04还没有telnet功能,需要配置一下。我主要是想让Ubuntu 12.04开启telnet服务做服务器。

安装openbsd-inetd:
#sudo apt-get install openbsd-inetd

安装telnetd:
#sudo apt-get install telnetd

在etc/inetd.conf文件中可以看到这一行内容:
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
如果没有这一行内容,就手动加上

重启openbsd-inetd
#/etc/init.d/openbsd-inetd restart

查看telnet运行状态
#netstat -a | grep telnet
输出: tcp 0 0 *:telnet *:* LISTEN

在windows的命令行中输入:telnet 192.168.1.8(我的linux的IP地址)
按照提示输入用户名和密码进入(非root用户)

效果如下:

Ubuntu 12.04
ubuntu login: kevin
Password:
Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19

20:34:50 UTC 20
10 i686 GNU/Linux
Ubuntu 12.04
Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

New release ‘natty’ available.
Run ‘do-release-upgrade’ to upgrade to it.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Ubuntu下安装建立Telnet 服务器 http://www.linuxidc.com/Linux/2010-03/25150.htm

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-04/116125.htm

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu 12.04 Telnet服务设置
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏