File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,12 @@ Open an SSH connection to your ec2 instances via AWS SSM without the need to ope
3737* If default region does not match instance region you need to provide it e.g.
3838 * ` <INSTACEC_USER>@<INSTANCE_ID>--<INSTANCE_REGION> `
3939###### SSH Command with SSH Config Setup
40- ` ssh <INSTACEC_USER>@<INSTANCE_ID> `
40+ ` ssh <INSTACEC_USER>@<INSTANCE_ID> ` e.g.
41+ * ` ssh ec2-user@i-1234567890 `
4142###### SSH Command with ProxyCommand CLI Option
42- ` ssh -i "~/.ssh/id_rsa" -o ProxyCommand="~/.ssh/aws-ssm-ec2-proxy-command.sh %h %r %p ~/.ssh/id_rsa.pub" <INSTACEC_USER>@<INSTANCE_ID> `
43+ `ssh <INSTACEC_USER>@<INSTANCE_ID> \
44+ -i "~ /.ssh/id_rsa" \
45+ -o ProxyCommand="~ /.ssh/aws-ssm-ec2-proxy-command.sh %h %r %p ~ /.ssh/id_rsa.pub"`
4346
4447## Alternative Implementation with ` ec2-instance-connect `
4548* Ensure [ Prerequisits] ( #prerequisits )
You can’t perform that action at this time.
0 commit comments