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
3434#### Open SSH Connection
3535* Ensure AWS CLI environemnt variables are set properly e.g.
3636 * ` 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> `
3939###### 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 `
4242###### SSH Command with ProxyCommand CLI Option
43- ```
43+ ``` sh
4444ssh < INSTACEC_USER> @< INSTANCE_ID> \
4545 -i " ~/.ssh/id_rsa" \
4646 -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