Re: Restarting sshd without interruption
From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 01/06/05
- Previous message: Stefaan A Eeckels: "Re: Restarting sshd without interruption"
- In reply to: sinister: "Restarting sshd without interruption"
- Next in thread: all mail refused: "Re: Restarting sshd without interruption"
- Reply: all mail refused: "Re: Restarting sshd without interruption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 6 Jan 2005 15:21:42 GMT
"sinister" <sinister@nospam.invalid> writes:
>I need to change the sshd config file to allow X11 forwarding and then
>restart sshd. How can I do this without possibility interrupting users
>currently using sshd? If I can't, is there a way to check to see if there
>are any live connections?
Count how many sshd daemons are running. If more than one then there are
external connections.
ps -ax|grep sshd
Since sshd forks a new version for each connection, you can kill and
restart the original with impunity. It will not affect existing
connections.
However do not do killall sshd since that WILL kill existing connections.
Rather if on a sysv type system do something like
service sshd restart.
Alternatively just send a
kill -HUP
to the main original daemon.
That will tell it to reread the config file.
- Previous message: Stefaan A Eeckels: "Re: Restarting sshd without interruption"
- In reply to: sinister: "Restarting sshd without interruption"
- Next in thread: all mail refused: "Re: Restarting sshd without interruption"
- Reply: all mail refused: "Re: Restarting sshd without interruption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|