Voytek Eymont wrote:
if I'm on an ssh connection, how do I restart sshd...?

shouldn't the ssh session I'm on drop me off ?

# service sshd status
sshd (pid 13182 10855 10853 7350 7348) is running...
# service sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
# service sshd status
sshd (pid 13216 10855 10853 7350 7348) is running...





SSH starts another process for each connection, and restarting sshd like that does not kill existing connections (in redhat's case anyway). Hence you can do the restart and it won't drop out.

Fil
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to