Skip to content

Commit 4a71f49

Browse files
authored
Update README.md
1 parent af9aeaa commit 4a71f49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Knox is a powerful utility designed to simplify and streamline the process of ma
100100

101101
Recommended configuration for `~/.aws/config`, feel free to swap out the commands to suit your needs:
102102

103-
```
103+
```ini
104104
[default]
105105
region = us-east-1
106106
output = json
@@ -136,7 +136,7 @@ sso_start_url = https://d-0000000000.awsapps.com/start
136136

137137
Here is another use-case where this tool can come in handy. If you use SSM Session Manager to SSH into your EC2 instances, you can use knox to switch between different AWS profiles and start an interactive session with a specific instance. Here is an example of how you can achieve this:
138138

139-
```
139+
```shell
140140
function ssh-aws () {
141141
if [[ $# -ne 1 ]]; then
142142
echo "Usage: ssh-aws <instance-id>"
@@ -149,5 +149,5 @@ function ssh-aws () {
149149
Now you can SSH into an EC2 instance using the following command:
150150

151151
```
152-
ssh-aws i-00000000000000000
152+
$ ssh-aws i-00000000000000000
153153
```

0 commit comments

Comments
 (0)