Forums | MacLife
You are not logged in.
#1 2003-11-21 5:44 pm
SHH on alternate port fails in Panther
I wanted to use SSH on my computer (G5 running Mac OS X 10.3.1) on an alternate port, as my ISP blocks all ports under 1024, but it didn't quite work.
I changed the sshd_config file to change the port to 2222 and after saving that file I started up System Prefs->Sharing and checked the Remote Login checkbox.
But, I couldn't log in remotly, not even by doing ssh -p 2222 localhost
I suspect there is a bug in panther that prevents the system from reading the configured sshd_config file.
The weird thing is that, when I turn off Remote Login, and type sshd -p 2222 (starting the ssh daemon manually) I can log in remotely just perfect. Remote Login has to be off in the System Prefs though.
I believe Jaguar didn't have this problem, but I'm not 100% sure. Does anyone know fix?
Thanks

Offline
#2 2003-11-21 8:07 pm
- DevilDuck
- Member
- Registered: 2003-03-24
- Posts: 24
Re: SHH on alternate port fails in Panther
changing the ssh port does work in panther.
You have to change the sshd_config as you said, but then you also have to change the /etc/services file, uncomment the default port 22 and write in the new ssh port where appropriate.
Once you've done this, reset sshd, and use the -p flag for the ssh client and it will work. I've been using if on port 34 for quite some time now....
Stef
PS - another alternative is to restart the sshd program with a -p xxx flag, where xxx is your new port number. This will disregard what the config files say about the port. Although i have not tried it, it should work
Offline
