Kick existing connected users
Through the "who" command, I can see that someone is connected to my machine (I allowed the ssh connection a week ago), but now I'm ready for him to disconnect. Is there a command that will immediately disconnect this user from my box?
Thanks, LoadedMind |
who returns pts number
example: joeuser pts/5 ps aux | grep pts\/5 | grep -v grep example: joeuser 4452 ... pts/5 ... /bin/bash kill -9 4452 hope this helps |
Thanks! That's exactly what I was looking for. I understood the majority of that command, with the exception of pts\/
Regards, LoadedMind |
the \ is necessary to escape the / (tell grep that we are looking for the '/' character ;)
|
Ah! Thanks!
|
All times are GMT -5. The time now is 02:00 AM. |