Skip to content

Instantly share code, notes, and snippets.

@sshnaidm
Created March 27, 2016 16:34
Show Gist options
  • Save sshnaidm/0cfed5ea77287595c91b to your computer and use it in GitHub Desktop.
Save sshnaidm/0cfed5ea77287595c91b to your computer and use it in GitHub Desktop.
multihop ssh tunnel
ssh -2fNL 8888:192.0.2.6:5000 instack -F ssh.config
cat<EOF>>ssh.config
Host instack
ProxyCommand ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ConnectTimeout=60 -i ~/.ssh/id_rsa [email protected] -W 192.168.122.66:22
# IdentityFile id_rsa_undercloud
User stack
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment