-
Making SSH with transparent Session Manager region-aware (SSH) In
.ssh/config
: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'"
and then use:
1
ssh ec2-user@i-0456ac191f9f975ec.eu-west-1
-
Is there a way for one SSH config file to include another one? (SSH)
1 2 3 4 5
Include config.d/home Host github.com HostName github.com User git
2022-08-18