beer9
asked on
How sshd restart works when I ssh to a box and restart sshd?
I sshed to a box and executed following command, I didn't loose my sshd connectivity and was able to successfully restart the service. How was I able to do it? What happened beneath?
sudo /etc/init.d/sshd restart
Password:
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you run "/etc/init.d/sshd stop", you will not disconnect from the machine. Your active session will be running until you disconnect by yourself.
All new connections will be disabled.
You can check the tree of running sshd daemons with
ps axf
All new connections will be disabled.
You can check the tree of running sshd daemons with
ps axf
ASKER
Thank you! :-)
ASKER
sudo /etc/init.d/sshd stop