一、安装telnet
telnet安装命令如下:
apt-get install telnetd

除了要安装telnet外,还需要安装xinetd:
apt-get install xinetd

如果安装失败,需要先更新
apt-get update
二、检查xinetd服务是否启动
检查命令为:
/etc/init.d/xinetd status

启动xinetd命令:
/etc/init.d/xinetd start

三、编辑/etc/inetd.conf文件
编辑文件命令:
vim /etc/inetd.conf
取消这一行注释,删除“#<off>#”

最后重启一下xinetd服务,然后再检查一下是否正常。
/etc/init.d/xinetd restart
nmap -p 23 127.0.0.1
可以使用命令测试连接
telnet 127.0.0.1

该文详细介绍了在Linux系统上安装telnet和xinetd服务的过程,包括使用apt-get进行安装,检查xinetd服务状态,编辑inetd.conf文件以启用telnet,并通过nmap测试23端口的连通性,最后通过telnet命令进行连接测试。
4133

被折叠的 条评论
为什么被折叠?



