Skip to content

Instantly share code, notes, and snippets.

@HQarroum
Last active April 5, 2023 21:26
Show Gist options
  • Save HQarroum/3a7d1bae1d7464ef88ac8fe6d0203c00 to your computer and use it in GitHub Desktop.
Save HQarroum/3a7d1bae1d7464ef88ac8fe6d0203c00 to your computer and use it in GitHub Desktop.
A configuration integrating SSH with AWS SSM Sessions Manager.
Host i-* mi-*
ProxyCommand bash -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