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
37
37
* If default region does not match instance region you need to provide it e.g.
38
38
* ` <INSTACEC_USER>@<INSTANCE_ID>--<INSTANCE_REGION> `
39
39
###### 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 `
41
42
###### 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"`
43
46
44
47
## Alternative Implementation with ` ec2-instance-connect `
45
48
* Ensure [ Prerequisits] ( #prerequisits )
You can’t perform that action at this time.
0 commit comments