Recently, there’s something wrong with yogurt. I found it’s hard to connect to the server of V society
ssh: connect to host master port 22: Connection timed out
It’s a matter of time. Now let’s make a summary of the possible problems and the solutions:
I. IP configuration error
sudo service iptables status
Command to view the status of the firewall
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 DROP tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
2 DROP tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
3 DROP tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
We can see that the default port 22 for SSH login is disabled
we use
sudo chkconfig iptables off
To permanently shut down the firewall, if used
sudo service iptables stop
The firewall will be shut down temporarily and reset after the next shutdown and restart. The first one is recommended
I can’t. try this one
vi /etc/ssh/sshd_ Config: port 22 protocol 2 is dropped from two comment numbers
If not, Congratulations, your server has been destroyed
Similar Posts:
- [How to Solve] Caused by: java.net.SocketTimeoutException: connect timed out
- [Solved] MySql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts…
- How to Solve MYSQL Error: pymysql.err.InterfaceError: (0, ”)
- Nginx error 111: connection rejected [How to Solve]
- Obstacle Elimination set: Slave_ IO_ R unning:No And slave_ IO_ R unning:Connecting reason
- SSH Connection Error: no matching host key type found. Their offer: ssh-dss [Solved]
- [Solved] Last_IO_Error: error connecting to master ‘[email protected]:3306’ – retry-time: 60 …
- Rabbitmq error of connecting the native idea to Linux: java.net.connectexception: connection timed out: Connect [Solved]
- [Solved] MYSQL Remote connection 2003 Error: can’t connect to MYSQL server on ”(10060)
- mysql Remote connection problems: Lost connection to MySQL server at ‘reading initial communication packet’, syste…