美文网首页
Centos7安装Telnet服务

Centos7安装Telnet服务

作者: coderfl | 来源:发表于2020-07-02 22:25 被阅读0次

注:以上要想完成telnet安装,telnet服务端和xinetd必须安装,至于telnet客户端根据自己需要安装即可!说白了就是如果本地你要是想使用telnet命令连接其他机器就需要装,如果只作为服务端需要别人连接自己既可以不用安装客户端(建议安装)

关闭防火墙并禁止开机自启
systemctl stop firewalld.service
systemctl disable firewalld

1、检查telnet是否安装

rpm -qa | grep telnet

2、yum安装telnet

yum -y install telnet telnet-server xinetd


Centos7 安装telnet

3、设置xinetd开机自启

systemctl enable xinetd.service

4、设置telnet开机自启

systemctl enable telnet.socket

5、启动telnet服务

systemctl start telnet.socket
systemctl start xinetd

6、配置防火墙规则(如果关闭防火墙了,就不需要这一步了)

firewall-cmd --permanent --add-port=23/tcp
firewall-cmd --reload

7、默认Root无法远程访问,因此需要修改以下配置文件

/etc/securetty
vi /etc/securetty
在末尾添加
pts/0
pts/1

8、查看telnet服务是否启动

ps -ef | grep 23

image.png

9、安装Telnet客户端,从Win7开始默认不会安装Telnet客户端,因此需要手动进行安装(如安装了请忽略),打开程序管理-启用或关闭Windwos功能,勾选上Telnet客户端点确定进行安装,安装完成后打开CMD,输入Telnet IP地址,出现以下界面表示配置Telnet成功了。

Centos7安装Telnet服务

Centos7安装Telnet服务 [ Centos7安装Telnet服务

相关文章

网友评论

      本文标题:Centos7安装Telnet服务

      本文链接:https://www.haomeiwen.com/subject/srvdqktx.html