linux - The newly installed centos7 server fails to connect remotely using ssh locally?
伊谢尔伦
伊谢尔伦 2017-05-16 13:18:38
0
3
757

The external IP of the ping server is accessible.
But the telnet IP 22 port is not accessible.
Use

There is also port 22 listening.
But I can’t connect using ssh + ip.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
黄舟

Try turning off the firewall, service firewalld stop

黄舟

Generally the firewall is turned on for newly installed systems. To turn off the firewall, run service iptables stop or add a firewall policy to open port 22

巴扎黑

Maybe the firewall is causing trouble, you can directly use the following command to turn off the firewall and selinux under centos7 2

setenforce 0
sed -i.bak "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
systemctl disable firewalld.service
systemctl stop firewalld.service
iptables --flush
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template