-
-
Save mjs/80ec94af30fc98c19c536373ae6c6d5e to your computer and use it in GitHub Desktop.
SSH jump host helper
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
#!/bin/sh | |
if [ $# -ne 2 ]; then | |
echo "usage: sshj <jump_host> <target>" | |
exit 1 | |
fi | |
exec ssh -o ProxyCommand="ssh -W %h:%p $1" "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
ssh jump.host.org [email protected]