- Making SSH with transparent Session Manager region-aware ()
In
.ssh/config
:and then use:1 2 3
host i-*.* mi-*.* ProxyCommand bash -c "aws ssm start-session --target $(echo %h|cut -d'.' -f1) --region $(echo %h|/usr/bin/cut -d'.' -f2) --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"host i-* mi-* ProxyCommand bash -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
1
ssh ec2-user@i-0456ac191f9f975ec.eu-west-1
- Is there a way for one SSH config file to include another one? ()
1 2 3 4 5
Include config.d/home Host github.com HostName github.com User git
- Scalable and secure access with SSH ()
2022-08-18