Quantcast

Forums | MacLife

You are not logged in.

#1 2003-11-21 5:44 pm

Taxxodium
Noisemaker
From: Belgium
Registered: 2001-03-04
Posts: 2093
Website

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


http://jesus.edot-studios.com/stuff/taxx_banner.jpg

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

 

#3 2003-11-22 4:01 am

Taxxodium
Noisemaker
From: Belgium
Registered: 2001-03-04
Posts: 2093
Website

Re: SHH on alternate port fails in Panther

Excellent, it works.

So the only files that needed to be modified were sshd_config and services. Good to know.

Thanks a bunch!


http://jesus.edot-studios.com/stuff/taxx_banner.jpg

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson