Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tylerhall
Created January 7, 2020 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerhall/bc2ac5e7fac6905a4c9feb2072a723df to your computer and use it in GitHub Desktop.
Save tylerhall/bc2ac5e7fac6905a4c9feb2072a723df to your computer and use it in GitHub Desktop.
Find the appropriate SSH tunnel's pid and kill the process
#!/bin/bash
kill -9 `ps -ax | grep imacvpn | head -n1 | cut -f1 -d " "`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment