ssh - connection refused
glgxg at sbcglobal.net
Fri Jan 16 23:16:59 UTC 2009
On 01/16/2009 01:54 PM, frmas wrote:
> I've tried to connect my office computer (client) to my home computer
> (server), using ssh, but I always have the same message returned when I
> run : ssh 18.104.22.168 -p 5317
> "ssh: connect to host 22.214.171.124 port 5317; Connection refused".
> When I restart ssh from my home computer (server), I have always the
> same error message in the auth log file :
> Jan 16 22:34:45 serv sshd: error: Bind to port 5317 on 0.0.0.0
> failed: Address already in use.
> (I don't use port 22, and here port 5317 is not the one I use really
> ;-)), it 's just for the purpose of that message.
> This is my /etc/ssh/sshd_config file
> Port 5317
The first thing to do is ensure that it works with 22 properly. Then
just change as above to 5317. I've just done this on one of my machines
after first ensuring that it works with 22 and performing a 'sudo
/etc/init.d/ssh restart on the 5317 target machine:
$ ssh -X <username>@<ipaddress> -p 5317
Linux <machinename> 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42 UTC
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
To access official Ubuntu documentation, please visit:
Last login: Fri Jan 16 15:02:37 2009 from <machinename>
More information about the ubuntu-users