大家好,又见面了,我是你们的朋友全栈君。
安装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
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.
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/149313.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...