How to close Multiple ssh tunnel & Session on Linux

Many times you may observe because of multiple session on SSH service stop responding

and that will lead to a problem and no new session will be established,

In such situation you will not be able to connect the server using SSH.


To resolve this either reboot the server from console or kill all the running SSH session by logging into console.

to check the session run below command

# /etc/init.d/sshd status

or
#ps -ef | grep sshd

this command will list the number of session running currently.

To kill all the SSH running session run the below command. in some situation restarting SSH service name not work , if restarting not happening follow the below procedure

#killall sshd

this will kill all the running ssh process, once you killed stop the service and start 
How to close Multiple ssh tunnel & Session on Linux How to close Multiple ssh tunnel & Session on Linux Reviewed by Unknown on April 04, 2018 Rating: 5

No comments:

Get Your Business Online Now


Powered by Blogger.