1 個回答
- 最新
- 最多得票
- 最多評論
0
Hello.
To use "AWSSupport-TroubleshootSSH", you need to set up an IAM role in EC2 to make it a Systems Manager management instance.
You need to configure it according to the setup documentation below.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html
This document may be easier to understand for troubleshooting.
https://repost.aws/knowledge-center/ec2-linux-resolve-ssh-connection-errors
相關內容
- 已提問 1 年前
- 已提問 6 個月前
- AWS 官方已更新 2 年前
thank you for your advice, I tried to set it up, now it shows the instance as managed, so I ran the AWSSupport-TroubleshootSSH again and now in succeeded on 1. step (assertInstanceIsManagedInstance), but failed on step 3. (troubleshootSSH), where it throws this error at me:
Might this mean that it still does not have correct permission or something like that?
I don't know the cause of this error, but the execution is failing. If Systems Manager is available, why not connect with Session Manager and check the SSH logs or restart SSH? https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html#start-ec2-console