How To Close All Ssh Connections In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. You can close all SSH connections by running a command in terminal.
Open a terminal and execute the following command:
$ sudo service ssh stop
This will stop the SSH daemon and terminate any existing connections.
2. You can also use the kill command to terminate all SSH connections.
Open a terminal and execute the following command:
$ kill –9 $(pgrep –f “sshd“)
This will terminate all SSH connections.