咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

CentOS7 下安装telnet服务的实现方法

2019-02-15 21:05:51 10430次

今天搞了下 Centos 7 下面升级 openssl 和 openssh ,顺便装了下 telnet


# 安装 telnet 避免 ssh 无法登录

yum -y install xinetd telnet telnet-server  

# 允许 root 账号登陆

vi /etc/securetty 

# 末尾添加两行

pts/0 

pts/1 


# 添加防火墙端口

vi /etc/sysconfig/iptables 

-A INPUT -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT 


# 重启服务关闭 firewalld

systemctl restart iptables 

systemctl disable firewalld 

systemctl stop firewalld 

# 注册服务

systemctl enable telnet.socket 

systemctl start telnet.socket 

systemctl enable xinetd 

systemctl start xinetd 

# centos7下面安装telnet 没有生成 /etc/xinetd.d/telnet 文件,我照以前的配置自己写了个进去貌似没用处,网上也没找到更多资料了

# 现在这样临时用用也够了

image.png

转载至:https://www.landui.com/zhouzme

首页
最新活动
个人中心