Resource icon

kill multiple SSH connections

Code:
lsof -i tcp:22 | grep ESTABLISHED | awk '{print $2}' | xargs echo kill
That will list the pid's to be killed
Code:
lsof -i tcp:22 | grep ESTABLISHED | awk '{print $2}' | xargs kill
That will kill them
  • Like
Reactions: eva2000
Author
Matt
Views
729
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Matt

Back
Top