前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS7 下安装telnet服务 原

CentOS7 下安装telnet服务 原

作者头像
拓荒者
发布2019-03-11 15:35:12
9030
发布2019-03-11 15:35:12
举报
文章被收录于专栏:运维经验分享运维经验分享

今天搞了下 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 文件,我照以前的配置自己写了个进去貌似没用处,网上也没找到更多资料了

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

(adsbygoogle = window.adsbygoogle || []).push({});

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018/04/18 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档