It was strange to report an error when connecting to SSH service this morning
I have searched a lot of information from Baidu. Now I collect and sort out some useful solutions for you
1. Restart CentOS
2 Restart VMware
3 Firewall problem:
solution:
(1) check the firewall: Service iptables status
(2) close the firewall first: /etc/init.d/iptables stop
(3) open firewall: Service iptables start
Start: systemctl start firewalld
(centos7 user)
Close: systemctl stop firewalld
(centos7 user)
4 Query whether port 22 is enabled
Query all open port commands
firewall-cmd --zone=public --list-ports
Permanently open port 22
firewall-cmd --zone=public --add-port=80/tcp --permanent
Reload
firewall-cmd --reload
5. Query whether SSH is installed on the Linux server
yum install openssh-server
6. Query whether SELinux is started
modify the file in /etc/selinux/config and set SELINUX = disabled:
Read More:
- scp Command: Unable to negotiate with xxx.xx.xx.xx port 22: no matching cipher found.
- [Solved] Xshelln Connect to Local VM linux Error: Could not connect to ‘XXX.168.122.1‘ (port 22): Connection failed
- [Solved] E xx: xxxx:xx ERR thread 0x536753929472 setscheduler failed Operation not permitted
- [Solved] Failed to connect to 127.0.0.1 port XXXX: Connection refused
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- [Solved] Ubuntu Error: Failed to connect to 127.0.0.1 port xxxxx: Connection refused
- Linux Connect Error: network.service failed [How to Solve]
- Centos6.8vnc error: connect: Connection refused 10061
- [Solved] SSH connect error: Host key validation failed
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] SSH Error: ECDSA host key for xxx has changed and you have requested strict checking.
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- [Solved] svn: OPTIONS of ‘https://xxx/svn/xxx’: SSL handshake failed: SSL error: Key usage violation in certificate has been detected.
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- [Solved] SSH connect Error: “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED“
- [Solved] SSH Failed to Login Ubuntu Error: Socket error Event: 32 Error: 10053. Connection closing…Socket close.
- [Solved] error:getaddrinfo ENOTFOUND xxx.xxxx.com xxx.xxxx.com:443
- Centos8 Could not restart the Network: Failed to restart network.service: Unit network.service not found
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- Linux Error: Failed to connect to ::1: No route to the host