kenabuangkeja
Monday, August 29, 2011
How To Clear SSH Session On Linux
If you found that there are too many idle users in your servers and you want to kill them? You can do that by this simple command :
kill -9 `ps aux|grep sshd|awk '{print $2}'`
This command will simply kill all the process based on "process id" on run by all "sshd connections".
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment