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
orw
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.