ssh - connection refused

Smoot Carl-Mitchell smoot at tic.com
Sat Jan 17 21:30:58 UTC 2009


On Sat, 2009-01-17 at 21:18 +0100, frmas wrote:

> I have added an entry as "virtual server", in my router settings.
> This is what I added :
> Enable (x)
> Name : ssh
> IP Address : 192.168.1.17 (the IP of my homeserver on the local lan)
> Protocol : TCP
> Private port : 22
> Public port : 5317
> Inbound filter : allow all
> Schedule : Always.

Sounds like you are inbound NATing from port 5317 on the public network
to 22 on the private network.
> 
> But could the problem come from the settings I added to the
> /etc/ssh/sshd_config file with :
> # What ports, IPs and protocols we listen for - Default is 22
> Port 5317
> 
> Should I change it to 22 in my sshd_config file, as I "translate" the
> public port 5317 to a private port 22 on my router settings?

Changing the port to 22 should resolve your problem.

-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list