I accumulate a lot of "ssh-agent -s" throughout my day due to ssh'ing to various servers. Here is my output from ps aux
:
Is there a command I can write to kill all the processes with the command "ssh-agent -s"?
I accumulate a lot of "ssh-agent -s" throughout my day due to ssh'ing to various servers. Here is my output from ps aux
:
Is there a command I can write to kill all the processes with the command "ssh-agent -s"?
Try this
ps aux | grep 'ssh-agent -s' | awk '{print $2'} | xargs kill -9