CentOS7 下安装telnet服务

CentOS7 下安装telnet服务

标签: telnet centos7

2015年06月11日 19:52:5521623人阅读 评论(1) 收藏 举报

 分类:

linux(41) 

版权声明:本文为博主原创文章,未经博主允许不得转载。 http://blog.csdn.net/zhouzme https://blog.csdn.net/zsjangel/article/details/46461177

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

# 安装 telnet 避免 ssh 无法登录

[plain] view plain copy

  1. yum -y install xinetd telnet telnet-server  


# 允许 root 账号登陆

[plain] view plain copy

  1. vi /etc/securetty  


# 末尾添加两行

[html] view plain copy

  1. pts/0  
  2. pts/1  


# 添加防火墙端口
[plain] view plain copy

  1. vi /etc/sysconfig/iptables  
  2. -A INPUT -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT  


# 重启服务关闭 firewalld
[plain] view plain copy

  1. systemctl restart iptables  
  2. systemctl disable firewalld  
  3. systemctl stop firewalld  



# 注册服务
[plain] view plain copy

  1. systemctl enable telnet.socket  
  2. systemctl start telnet.socket  
  3. systemctl enable xinetd  
  4. systemctl start xinetd  

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

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

猜你喜欢

转载自my.oschina.net/u/3367404/blog/1797147