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
whoorwcommand – Show who is logged on and what they are doing.pkillcommand – Kill user session and forcefully logout of the system.shutdowncommand – Arranges for the system to be brought down in a safe way.