Operating System - HP-UX
1832487 Members
4293 Online
110043 Solutions
New Discussion

Install and Configure SSHD

 
Ivan_86
Frequent Advisor

Install and Configure SSHD


Hi to all.!

We are trying install the SSH in a SD3200 with 11.11 v1. We make this task.

1.- Donwload de SSH from www.software.hp.com product number T1471AA A.03.50.000 and TCP-Wrappers.

2.- Install the 2 Products using swinstall, without errors and warnings.

3.- We edit the files /opt/ssh/etc/sshd_config, in this archive, insert the port number that i want use for ssh, the port is 9378

4.- Insert in the /etc/services the next line
sshd 9378/tcp # SSHD Secure Shell

5. - In the inetd.conf we insert the next line

sshd stream tcp nowait /usr/lbin/tcpd /opt/ssh/sbin/sshd -i

6.- Restart the inetd demon with #inetd -c


We do it this task, but the sshd no its working, somebody have some procedure to install and configure the sshd ..???

Thanks..!!
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Install and Configure SSHD

Shalom Ivan,

You came very close to getting it right.

1) You don't need to use inet.conf and inetd to run sshd. The install process set up the daemon all by itself.

2) Take the stuff out of inet.conf and inetd -c to reload.

3) ps -ef | grep sshd If you get a hit sshd is already running, or else....

4)/sbin/init.d/sshd start

5) My "don't know" here is /etc/services. I'm not sure you need it for proper functionality. Maybe someone else knows.

If that fails, you might want to go software.hp.com and get a more current version. They're on 4.1 now.

Nothing wong with your sshd_config changes either, but you might want to attach the file so we can look at mistakes.

Lastly:

tail -f /var/adm/syslog/syslog.log

After making sure sshd is running. Then try an ssh connect to the server. IF all is well, you will see the connection logged with details.

Good Luck,

SEO
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: Install and Configure SSHD

sshd is not started by inetd but is started by rc. Swinstall should do all of this for you. If you want to change ports then edit /opt/ssh/etc/sshd_config and change the Port entry. You then:
cd /sbin/init.d
./secsh stop
./secsh start

No /etc/services or services NIS map entries are needed. You will need to specify the non-standard port when you use the ssh client (or modify the Port entry in ssh_config as well but then you would have to specify the standard port when connecting to default sshd's on other hosts).
If it ain't broke, I can fix that.
Ivan_86
Frequent Advisor

Re: Install and Configure SSHD

Thanks ..!!!!!


I resolve the problem, I have wrong in the especification of the paths in the inetd.conf

I chnage the paths and working witout problems Thanks