You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
138
138
139
-
```
139
+
```shell
140
140
functionssh-aws () {
141
141
if [[ $#-ne 1 ]];then
142
142
echo"Usage: ssh-aws <instance-id>"
@@ -149,5 +149,5 @@ function ssh-aws () {
149
149
Now you can SSH into an EC2 instance using the following command:
0 commit comments