実現したいこと
ssh接続をsystem managerを通して実行したい
前提
- ssh-agentインストール済み
- system managerのプラグインインストール済み
- awscli version2以降インストール済み
- ローカルのconfigファイルに以下を記載済み
# SSH over Session Manager host i-* mi-* ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
また、マネジメントコンソールからはログインできたのですがターミナルからは以下のようなエラーが出ました。
発生している問題・エラーメッセージ
$ ssh -i ~/.ssh/examplei.pem ec2-user@i-example Unable to locate credentials. You can configure credentials by running "aws configure". kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535
調べた、実践したこと
Unable to locate credentials. You can configure credentials by running "aws configure".
はaws cli の設定ができていないということでしょうか?
お願いしたいこと
エラー内容の解読が間違っているかいないか、などご教授いただけますと幸いです。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。