Skip to content

Instantly share code, notes, and snippets.

@tuxpower
Created June 19, 2018 14:09
Show Gist options
  • Save tuxpower/dead553af481c3ad7ceb7e82d6807be5 to your computer and use it in GitHub Desktop.
Save tuxpower/dead553af481c3ad7ceb7e82d6807be5 to your computer and use it in GitHub Desktop.
ssh -i ~/.ssh/aws_key -o ProxyCommand='ssh -i ~/.ssh/id_bastion -W %h:%p user@bastion' ec2-user@aws-instance
https://www.nadeau.tv/ssh-with-a-bastion-host/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment