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.
CodePudding user response:
If you can ping the server it can be the following causes:
- The server is not answering ssh, sometimes ssh server is not up or it is answering in another port.
- 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.
CodePudding user response:
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 sollved try it it may works
CodePudding user response:
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