ubuntu 10.04中开启telnet服务

首先安装openbsd-inetd: sudo apt-get install openbsd-inetd

  然后检查文件/etc/inetd.conf,确保有这一行

  telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd

  然后启动:sudo /etc/init.d/openbsd-inetd restart

  就可以了

  查看telnet服务是否启动: netstart -a | grep telnet

  如果已经启动,可以得到如下信息:

  tcp 0 0 *:telnet *:* LISTEN

  可以通过登录本机,测试telnet服务是否可用:telnet localhost

  如果可用,得到下面的提示:

  Trying ::1...

  Trying 127.0.0.1...

  Connected to localhost.

  Escape character is '^]'.

  Ubuntu 10.04.1 LTS

  rectangle login:


你可能感兴趣的:(ubuntu 10.04中开启telnet服务)