Home > Operation and Maintenance > CentOS > How to solve SSH cannot connect CentOS6.5

How to solve SSH cannot connect CentOS6.5

WJ
Release: 2020-06-03 15:37:51
Original
3876 people have browsed it

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
Copy after login

(2) Effective immediately, invalid after restart

开启: service iptables start
关闭: service iptables stop
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template