$ ssh -M -S my-ctrl-socket -fnNT -L 50000:localhost:3306 [email protected]
$ ssh -S my-ctrl-socket -O check [email protected]
Master running (pid=3517)
$ ssh -S my-ctrl-socket -O exit [email protected]
Exit request sent.
Created
March 7, 2017 04:08
-
-
Save ianchen06/a064bbaca22e4e98b216947fd33cdf1d to your computer and use it in GitHub Desktop.
Cool ssh tunnel tricks, keep alive in background
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment