Ssh server connects to xxx 22 host port: connection timeout on linux-ubuntu

I am trying to connect to a remote server via ssh, but am getting a connection timeout.

I executed the following command

ssh testkamer@test.dommainname.com

and getting the following result

ssh: connect to testkamer@test.dommainname.com host port 22: connection timeout

but if I try to connect to another remote server, I can log in successfully.

So, I think that there are no problems in ssh, and the other person is trying to log in with the same name and password with which he can successfully log into the server.

Please help me
Thank you

+6
source share
5 answers

Here are a few things that might prevent you from connecting to your Linode instance:

  • DNS problem : if the computer that you use to connect to your remote server does not allow test.kameronderdehamer.nl correctly, then you will not be able to get to your host. Try connecting using the public IP address assigned to your Linode and see if it works (for example, ssh user@123.123.123.123 ). If you can connect using a public IP address but not using a host name, which will confirm that you have some problem with resolving the domain name.

  • Network problems : there may be some network problems that prevent the connection to your server. For example, a router might be configured incorrectly between you and your host, or you might be experiencing packet loss. Although this is not often, Suddenly I have come many times with Linode and can be very annoying. It would be nice to check this just in case. You can look at Diagnosing Network Problems with MTR (from the Linode Library).

+7
source

I received this error and found that I do not have my SSH port (non-standard number) included in the configuration server firewall.

+2
source

There can be many reasons.

Some of them are listed above. I faced the same problem, it is very difficult to find the root cause of the failure.

I will recommend that you check the session timeout for shh from the ssh_config file. Try increasing the session timeout and see if it works again

0
source

If you are on a public network, the firewall blocks all incoming connections by default. check your firewall settings or use a private network for SSL

0
source

SSH may not be enabled on your server / system.

  1. Check the status of sudo systemctl ssh Active or not.
  2. If it is not active, try installing using these commands

Sudo update

sudo apt install openssh server

Now try to access the server / system with the following command

ssh username @ip_address

0
source

All Articles