Skip to content

Instantly share code, notes, and snippets.

@monakez
Created October 4, 2021 11:58
Show Gist options
  • Save monakez/00e5388daa5a7b12fbd776e0da672248 to your computer and use it in GitHub Desktop.
Save monakez/00e5388daa5a7b12fbd776e0da672248 to your computer and use it in GitHub Desktop.
SSH over aws Session Manager
#~/.ssh/config
# SSH over Session Manager
host i-* mi-*
ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment