Last active
February 11, 2016 20:33
-
-
Save rhenning/b26f17d14efe64b2fef9 to your computer and use it in GitHub Desktop.
SSH via OpenVPN gateway
This file contains 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/bash | |
gw=$1 | |
target=$2 | |
shift 2 | |
ssh -o StrictHostKeyChecking=no -o ProxyCommand="ssh -o StrictHostKeyChecking=no -W %h:%p openvpnas@${gw}" $target -l ubuntu $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment