SSH working on Windows But not on Ubuntu Mate

I am unable to use ssh on ubuntu mate 16.04. I have couple of dedicated servers and I can SSH these servers on my windows computer without any problem. But cant access a single server on ubuntu. Here is the output of ssh -vvv command.

ssh -vvv user@MYIP -p 22 OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips 1 Mar 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "MYIP" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to MYIP [MYIP] port 22. debug1: connect to address MYIP port 22: Connection timed out ssh: connect to host MYIP port 22: Connection timed out
can you please tell me how can I fix this.

I just created exactly this error sequence attempting a non-existent host. So it sure looks like something about the network isn’t getting from the Ubuntu-Mate box to the servers somehow. Can you ping them?

Is “MYIP” a dot address or hostname?
One local network box to another on same network? Could the Ubuntu-Mate box ended up on a different network?
No DNS or hosts file involved in resolving the server addresses?

I’m looking for something preventing the connection at the routing level somehow.

  1. MYIP is simply the IP address of my server.
  2. No we are not on the same network. My server is in another country.
  3. I even cant ping the IP address.
  4. I am unable to answer your last question. I know ubuntu server to a certain extent but I am not an expert. I think no DNS file is involved since the server doesn’t configure to use any domain name.

The odd thing is, I have configured the OpenVPN on the same server and I can connect to VPN from ubuntu mate and browse internet without any trouble. So the problem is only with SSH.

Basic network path must be involved if you can’t ping it. Yet an OpenVPN connection gets to it. I don’t know enough how OpenVPN sets up via NetworkManager but suspicious it may be involved since it selects that host in a special way. But how? Anyone?

DNS and hosts files are ways to get to servers that may be on the same network by name. It won’t be involved when using IP addresses.

EDIT: How about pointing the VPN setup somewhere else, temporarily, and see if ssh and ping start working?

Hi
If you try ping / ssh after you connect the VPN that won’t work with the server’s public IP, except if you’ve configured the connection to be used “Only for resources on this network” (IPv4 Settings -> Routes)

If all your traffic is routed in the VPN then you need to use the server’s IP inside the VPN. (10.8.0.1 default OpenVPN)

Your symptoms seem to me, to be evident of a firewall dropping packages on port 22. It seems that something between you and the server is acting as a firewall.

Yes. My router was the problem.

Ouroumov,
Would you be kind enough to weigh in on “not seeing Windows network” trying to get to the bottom of similar issues on samba