标签:防火 允许 start state emctl ref 今天 serve install
今天搞了下 Centos 7 下面升级 openssl 和 openssh ,顺便装了下 telnet
# 安装 telnet 避免 ssh 无法登录
yum -y install xinetd telnet telnet-server
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
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 文件,我照以前的配置自己写了个进去貌似没用处,网上也没找到更多资料了
# 现在这样临时用用也够了
标签:防火 允许 start state emctl ref 今天 serve install
原文地址:https://www.cnblogs.com/ios9/p/9749742.html