I have Ubuntu server 22.4 and I it had SSH server installed. Time to time SSH connection was doping even while I was working. I update the SSH by using command sudo apt-get update ssh
. After the update, I am not able to connect to my server via SSH.
What I have done so far?
I restart the Server
I re-install the ssh
I switched off the firewall.
when run
ps -ef | grep ssh
I see the following result. enter image description heresudo systemctl status ssh
show active and running.I also increase the time for ping to 60 sec and restart the SSH services and server.
When I use the same static IP it show error of time out as follow.
Session stopped Press to exit tab Press R to restart session Press S to save terminal output to file Network error: Connection timed out
When I change the IP address I see this error
Pinging 153.70.70.70 with 32 bytes of data: Reply from 192.123.1.2: Destination host unreachable. Reply from 192.123.1.2: Destination host unreachable. Reply from 192.123.1.2: Destination host unreachable. Reply from 192.123.1.2: Destination host unreachable. Ping statistics for 153.70.70.70: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Now I have noting left to try and still not able to find the core issue. Please help me out to find, what exactly the problem is and how to resolve it.
ping
reports Destination host unreachable. and in the same time 0% loss? However, in case you can connect to the server and the connection drops randomly, first I will suppose it is hardware problem on the route - broken cable, switch, router, etc. You can keep theping
command alive for a longer period, 30 mins for example, to check that. In addition, please, don't post text as image, just copy/paste the output of your command and use the formatting tools of the form to make it nice for reading.