Skip to content

Commit 68f543f

Browse files
authored
Update README.md
1 parent 4882f0c commit 68f543f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
4444
ssh <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"

0 commit comments

Comments
 (0)