How to log off all user from ssh client in ssh server?

How to log off all user from ssh client in ssh server? not just a particular user, so that i don't have to log off one-by-one from ssh server.

1 Answer

Check this example: Log Everyone Out Of The System

  • who or w command – Show who is logged on and what they are doing.

  • pkill command – Kill user session and forcefully logout of the system.

  • shutdown command – Arranges for the system to be brought down in a safe way.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like