Home > Article > Operation and Maintenance > How to solve SSH cannot connect CentOS6.5
How to solve the problem that SSH cannot connect to CentOS6.5?
1. Confirm that the port connected to the switch is normal. If you want to check, try changing a few more ports.
2. Confirm that there is no problem with the network. .
3. Close all selinux iptables services
4. Check whether the machine is listening on port 22 and whether the ssh service is enabled. Command: netstat -na and service sshd status
Here I want to tell you that the firewall can be temporarily closed or permanently closed
(1) It will take effect after restarting
开启: chkconfig iptables on 关闭: chkconfig iptables off
(2) Effective immediately, invalid after restart
开启: service iptables start 关闭: service iptables stop
Related reference:centOS tutorial
The above is the detailed content of How to solve SSH cannot connect CentOS6.5. For more information, please follow other related articles on the PHP Chinese website!