Skip to content

Commit 4c59676

Browse files
authored
Update README.md
1 parent 21b0702 commit 4c59676

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)