No - it will kill the sshd that listens on port 22, but not the process servicing your connection. I've done this before, and you probably have too - eg, last time you did an apt-get upgrade and it upgraded ssh for you.
If you're worried, queue up a couple of at jobs - one in 10 minutes to start openssh, and jus tin case that doesn't work, another 10 minutes after that to reboot the machine. On 05/06/07, Voytek Eymont <[EMAIL PROTECTED]> 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... -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- There is nothing more worthy of contempt than a man who quotes himself - Zhasper, 2004 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html