Skip to content

Instantly share code, notes, and snippets.

@goddoe
Created June 5, 2018 06:24
Show Gist options
  • Select an option

  • Save goddoe/48b5f2463f9d039d0a603a7cf590c23f to your computer and use it in GitHub Desktop.

Select an option

Save goddoe/48b5f2463f9d039d0a603a7cf590c23f to your computer and use it in GitHub Desktop.
Make ssh tunnel between client and server.
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