Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH Issue - Can't access additional port

Status
Not open for further replies.

johndrake

Technical User
Jul 25, 2002
97
Hi All,

I'm having problems accessing an additional port
using SSH. I've modified the /etc/services file and have
added the following:

ssh 22/tcp
ssh 555/tcp

I have also modified the inetd.conf file and have added
the following line to it:

ssh stream tcp nowait root /tools/sbin/sshd sshd -i

Once this was done, I refreshed the subsystem by entering
the command refresh -s inetd.

Within the ssh_config file, their is line that has the
following:

Port 22

Should I add another port here?

Please help.

-Joe
 

Hi,
the services file doesn't do anything in itself. It is used for looking up port numbers but doesn't configure anything.

You either need to add another entry to inetd.conf with a different port number on the sshd option line or add a port in the configuration file. (Don't know if that will work.)

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Hi,

Thanks. So I should enter in the following line in the /etc/inetd.conf file:

ssh stream tcp nowait root /tools/sbin/sshd sshd -i -p 22 555

-Joe
 

Is -p the port number??

In that case you need to add two lines to inetd.conf, one for each port number.

I have never tried this but I think you need to call them by different names, e.i. two first word should be ssh and ssh2 fx. Then change the line in 'services' to be ssh2 for the 555 port.

In inetd.conf:

ssh stream tcp nowait root /tools/sbin/sshd sshd -i -p 22
ssh2 stream tcp nowait root /tools/sbin/sshd sshd -i -p 555

In services:

ssh 22/tcp
ssh2 555/tcp

Try it out. I won't promise it works.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top