Ubuntu – Why can’t I connect to SSH server from Ubuntu client? (while windows client is okay)


I have configured an ssh server on a Ubuntu 12.04 LTS machine. I changed the listening port to the one different from the default port 22 (that's the only change I made on the server).

I am trying to connect to the server from a Ubuntu remote machine but the connection is refused. The weird thing is that I can connect to the server from a Windows remote machine.

What makes this difference? How can I make the Ubuntu remote machine get connected to the server?


  • OS: Ubuntu 12.04.03 64bit Desktop
  • Checked the ssh process is running
  • Firewall: not changed from default status
  • Checked the ssh port is open to public

[Ubuntu Remote Machine]

  • OS: Ubuntu 13.04 or 13.10 64bit Desktop
  • Client Software: Vinagre
  • Firewall: not changed from default status

[Windows Remote Machine]

  • OS: Windows 7 Ultimate 64bit
  • Client Software: Tera Term
  • Firewall: not changed from default status

Best Answer

When Connect to Ubuntu Server from Linux Client Via Terminal, Specify the port Number, Suppose that your server ip (any hostname) ,with port 39

at terminal

ssh username@ -p 39

where username is exist username on that server you connect , -p : specify the port number.

At Vinagre Client , New Connection , then Specify the hostname:portnumber, enter image description here

Related Question