Skip to content

Instantly share code, notes, and snippets.

@zmiftah
Created March 23, 2015 10:41
Show Gist options
  • Save zmiftah/bc6bb6b25ab2b5df1152 to your computer and use it in GitHub Desktop.
Save zmiftah/bc6bb6b25ab2b5df1152 to your computer and use it in GitHub Desktop.
Linux Command : Kill Process SSH
ps -ax | grep ssh
/* Result
886 pts/3 S+ 0:00 grep --color=auto ssh
1016 ? Ss 0:00 /usr/sbin/sshd -D
3783 pts/5 S 0:37 ssh -x -a -oClearAllForwardings=yes -2 [email protected] -s sftp
3835 ? Ssl 1:05 sshfs [email protected]:/home/project /mnt/pkpu_pro
*/
sudo kill -9 886 1016 3783 3835
sudo umount /mnt/pkpu_project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment