Will restarting sshd disconnect you?

Say you’re on a bastion host and want to restart sshd with:

 

Is it going to disconnect you?

No.

What you will see if you’re tailing /var/log/auth.log┬áis:

Oct 24 13:35:25 0 sshd[5250]: Received signal 15; terminating.
Oct 24 13:35:25 0 sshd[5668]: Server listening on 0.0.0.0 port 22.
Oct 24 13:35:25 0 sshd[5668]: Server listening on :: port 22.

https://serverfault.com/questions/141205/restart-ssh-on-a-machine-where-ssh-is-the-only-mode-of-access

 

Leave a Reply

Your email address will not be published. Required fields are marked *