Created
June 5, 2018 06:24
-
-
Save goddoe/48b5f2463f9d039d0a603a7cf590c23f to your computer and use it in GitHub Desktop.
Make ssh tunnel between client and server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias sshtunncml="sshpass -p{PASSWD} ssh -o StrictHostKeyChecking=no -p {SSH_PORT} -N -f -L localhost:{PORT}:localhost:{PORT} {ID}@{HOST}" | |
| # Run on XQuartz. | |
| alias sshxncml="sshpass -p{PASSWD} ssh -o StrictHostKeyChecking=no -p {SSH_PORT} -X {ID}@{HOST}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment