Operating System - HP-UX
1823062 Members
3157 Online
109645 Solutions
New Discussion юеВ

SSHD startup using inetd.conf

 
SOLVED
Go to solution
Dinesh S Devan
Occasional Advisor

SSHD startup using inetd.conf

Could someone tell me how I can start sshd from inetd.conf.

4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: SSHD startup using inetd.conf

sshd from inetd must user -i option. you need to have following line in inetd.conf file.

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

In /etc/services file.

ssh 22/tcp #ssh port

You can use any post you want. Make sure you have start up scripts in respective rc directories.
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor

Re: SSHD startup using inetd.conf

Yes. Check /etc/services file for ssh service with 22 port number.

In /etc/inetd.conf

ssh stream tcp nowait root //sshd sshd -i

save it.

Reconfigure inetd daemon as,

# inetd -c

Check for sshd startup script availablity in /sbin/init.d/ directory.

hth.
Easy to suggest when don't know about the problem!
Dinesh S Devan
Occasional Advisor

Re: SSHD startup using inetd.conf

Thank you very much for the help. I was trying without the -i option.
AwadheshPandey
Honored Contributor

Re: SSHD startup using inetd.conf

check this, this is what u want
http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2005-04/0045.html

Awadhesh
It's kind of fun to do the impossible