Skip to content

Instantly share code, notes, and snippets.

@soulaway
Created October 15, 2023 20:41
Show Gist options
  • Save soulaway/a18f78b1c5fd4030cae45cb8c7f9f84b to your computer and use it in GitHub Desktop.
Save soulaway/a18f78b1c5fd4030cae45cb8c7f9f84b to your computer and use it in GitHub Desktop.
ssh hints
### Tunel remote 8080 to local 8089:
ssh -L 8089:10.122.3.6:8080 [email protected]
### Execute bash after ssh connection:
ssh -tt [email protected]<<EOT
# cd /home/theuser/pathToRemoteApp
# call mvn,ant,bash
exit
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment