Click to See Complete Forum and Search --> : change sshd listening port


stussy00
08-13-2002, 02:23 PM
i want to be able to connect from work to home via ssh. my isp blocks all ports below 1024. will nat break ssh, i.e... if i configure my client to connect to port 5000 from work to home, then on my netgear rt314 pat it from 5000 to port 22,, will that work?. i am not sure that it will cause of the funky things nat does.

option2

i would like to change the port that sshd listens on. i edited sshd.conf in /etc/ssh/ and then rebooted. i changed the port from 22 to 5800. after i rebooted i could not connect on 5800, i could only connect on 22,,,, wtf? is there something i am missing(lots?)

I AM A NEWBIE, let me make that clear....

i am running rh7.3 with openssh 1.48.. please helpme

thanks

stu

Lorithar
08-14-2002, 10:32 AM
Its possible that you are running sshd through xinetd .. or through /etc/inetd.conf

I'm not redhat aware ... and as far as I know redhat uses xinetd.conf.

This file tells the inet superserver what ports relate to what applications. If you can still connect on 22 I would suspect that this is where your problem lies ... since it still believes that the service is attached to port 22 ...

In slackware, I'd just edit /etc/inetd.conf and change the line that starts ssh to use port xxxx ...

I suspect that there is a redhat tool to do this .. and all that would be required after the change is a restart of inetd.

(hope this gives you a clue or two)

stussy00
08-16-2002, 11:30 AM
ok,, i am an idiot,, i did change ssd.conf but i also had to remove the comment symbol(#)
now it works
thanks for your help


stu