Operating System - HP-UX
1753822 Members
9266 Online
108805 Solutions
New Discussion юеВ

Re: Reread /opt/ssh/etc/sshd_config

 
SOLVED
Go to solution
Clay_Chappell
Occasional Advisor

Reread /opt/ssh/etc/sshd_config

HP-UX 11.23
Is there anyway for sshd to reread sshd_config without stopping|restarting sshd? e.g. inetd -c for inetd.conf
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Reread /opt/ssh/etc/sshd_config

You could try a 'kill -HUP' on the PID of the sshd daemon.
TTr
Honored Contributor
Solution

Re: Reread /opt/ssh/etc/sshd_config

There is a "parent" sshd process and then there are all the children sshd processes that carry the user sessions.

If you HUP the parent process (kill -HUP sshd-PID), it will reread the config file and will not affect any user sessions in the children sshd.
Clay_Chappell
Occasional Advisor

Re: Reread /opt/ssh/etc/sshd_config

Thanks
Just the same, I think I'll wait until most of the users have logged off on their own
VK2COT
Honored Contributor

Re: Reread /opt/ssh/etc/sshd_config

Hello,

Reloading the master sshd daemon is safe.
A new process ID will be generated but
all current sshd children processes stay
active.

No damage is done :)

I have done it many, many times.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Clay_Chappell
Occasional Advisor

Re: Reread /opt/ssh/etc/sshd_config

Please close this thread