打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ubuntu14.04 telnet服务器与客户端安装
ubuntu14.04安装telnet
翻译 2016年03月16日 19:44:22
标签:
telnet
1、首先查看telnet运行状态
netstat -a | grep telnet
输出为空,表示没有开启该服务
2、安装openbsd-inetd
apt-get install openbsd-inetd
如果已经安装过了,会提示已经安装过了,直接执行下面的步骤就可以了。
3、安装telnetd
apt-get install telnetd
安装完之后,查看/etc/inetd.conf的内容会多了一行telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
cat /etc/inetd.conf | grep telnet
输出: telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
4、重启openbsd-inetd
/etc/init.d/openbsd-inetd restart
输出:* Restarting internet superserver inetd
5、查看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/52851472
ubuntu14.04中安装telnet客户端 (亲测)
一、首先查看telnet运行状态
[cpp] view plain copy
#netstat -a | grep telnet
输出为空,表示没有开启该服务
二、安装openbsd-inetd 和 telnetd
[cpp] view plain copy
apt-get install openbsd-inetd
apt-get install telnetd
三、sudo vi /etc/inetd.conf 并加入以下一行
[cpp] view plain copy
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
四、sudo vi /etc/xinetd.conf 并加入以下内容:
[cpp] view plain copy
# 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 vi /etc/xinetd.d/telnet并加入以下内容:
[cpp] view plain copy
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no  www.2cto.com
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
六、重启ubuntu 即可。
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
busybox配置telnetd
AIX开启与关闭Telnet服务
inetd.conf文件
Ubuntu下建立tftp服务器_FTP服务器_开发学院
如何监视某个tty? | 大学
tftp配置方法及常见错误
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服