File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ Open an SSH connection to your ec2 instances via AWS SSM without the need to ope
34
34
#### Open SSH Connection
35
35
* Ensure AWS CLI environemnt variables are set properly e.g.
36
36
* ` export AWS_PROFILE=default ` or ` AWS_PROFILE=default ssh ... <INSTACEC_USER>@<INSTANCE_ID> `
37
- * If default region does not match instance region you need to provide it e.g.
38
- * ` <INSTACEC_USER>@<INSTANCE_ID>--<INSTANCE_REGION> `
37
+ * If default region does not match instance region you need to provide it
38
+ * e.g. ` <INSTACEC_USER>@<INSTANCE_ID>--<INSTANCE_REGION> `
39
39
###### SSH Command with SSH Config Setup
40
- ` ssh <INSTACEC_USER>@<INSTANCE_ID> ` e.g.
41
- * ` ssh ec2-user@i-1234567890 `
40
+ ` ssh <INSTACEC_USER>@<INSTANCE_ID> `
41
+ * e.g. ` ssh ec2-user@i-1234567890 `
42
42
###### SSH Command with ProxyCommand CLI Option
43
- ```
43
+ ``` sh
44
44
ssh < INSTACEC_USER> @< INSTANCE_ID> \
45
45
-i " ~/.ssh/id_rsa" \
46
46
-o ProxyCommand=" ~/.ssh/aws-ssm-ec2-proxy-command.sh %h %r %p ~/.ssh/id_rsa.pub"
You can’t perform that action at this time.
0 commit comments