skip to Main Content

I have Ubuntu 22.04 newly installed on my laptop. I am trying to connect to a remote server and getting the following error:

ssh: connect to host  ********* port 22: Connection timed out

I tried some solutions which include,

  • ping the IP address
  • adding the IP address to the firewall using sudo ufw
  • installing ssh and openssh

However, nothing seems to work. I’d be thankful if someone can help me to solve this problem.

2

Answers


  1. ssh: connect to host  ********* port 22: Connection timed out
    

    I have this kind of problem too I contact the server admin and said the operation system should be install again due to some problems

    after re installing the problem solved try it it may works

    Login or Signup to reply.
  2. If you can ping the server it can be the following causes:

    1. The server is not answering ssh, sometimes ssh server is not up or it is answering in another port.
    2. There is a firewall blocking your request.

    You do not need to install the openssh server in your computer to access a remote hosts and normally outbound connections are allowed by ufw.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search