Operating System - HP-UX
1752774 Members
4845 Online
108789 Solutions
New Discussion юеВ

Re: Run sshd at boot time

 
SOLVED
Go to solution
shankar!
Frequent Advisor

Run sshd at boot time

Hi all,

For every server reboot, I have to run /usr/local/sbin/sshd manually to get the sshd daemon up and running. Is there anyway we can run this daemon automatically at boot time?
My Os, HP UX 11.11

Thanks
-shankar
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: Run sshd at boot time

Check this file:

# more /etc/rc.config.d/sshd
# SSHD_START: Set to 1 to start SSH daemon
# SSHD_ARGS: Command line arguments to pass to sshd
#
SSHD_START=1
SSHD_ARGS=



Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Michal Kapalka (mikap)
Honored Contributor

Re: Run sshd at boot time

Hi,

edit this file

/etc/rc.config.d/sshd

change SSHD_START=0 ==> SSHD_START=1

mikap
Sajjad Sahir
Honored Contributor

Re: Run sshd at boot time

Dear Shankar

startup script sshd should be located in the /etc/rc.d/init.d directory, and there should be symbolic links to sshd startup script in /etc/rc.d/rc?.d.

thanks and regards

Sajjad Sahir
shankar!
Frequent Advisor

Re: Run sshd at boot time

srv2:root> more /etc/rc.config.d/sshd
/etc/rc.config.d/sshd: No such file or directory

srv2:root> cd /etc/rc.d/init.d
bash: cd: /etc/rc.d/init.d: No such file or directory

I think I downloaded this package from http://hpux.connect.org.uk and installed it.

srv2:root> uname -a
HP-UX srv2 B.11.11 U 9000/800 3916133712 unlimited-user license

thanks
-shankar
Michal Kapalka (mikap)
Honored Contributor

Re: Run sshd at boot time

Hi,

the SSHD depot is located on

software.hp.com

mikap
Michal Kapalka (mikap)
Honored Contributor

Re: Run sshd at boot time

Hi,

uninstall upr depot and install it form oficial HP site, normally the sshd is located in /usr/sbin/sshd.

mikap
Suraj K Sankari
Honored Contributor
Solution

Re: Run sshd at boot time

Hi,

If this file is not there then did you find that file into your server.

#find / -name sshd -print

post the command output

or you can add this line into rc.local

See the similar problem

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1241594082697+28353475&threadId=1234447

Suraj


Suraj
shankar!
Frequent Advisor

Re: Run sshd at boot time

I created a file (sbin/init.d/sshd)and added /usr/local/sbin/sshd to it and sym link that to /sbin/rc3.d/S999sshd.

let us see in the next reboot.

thanks
-shankar