■環境など
Mac OS:Venture 13.2.1
繋がらなくなったサーバー:Amazon Linux EC2
やりたいこと:SSHログイン
■出ているエラー
sign_and_send_pubkey: no mutual signature supported
ec2-user@35.176.250.29: Permission denied (publickey).
■試してみたこと
【パターン1】
~/.ssh/config
に、下記を記載。
Host *
PubkeyAcceptedKeyTypes=+ssh-rsa
HostKeyAlgorithms=+ssh-rsa
参考ソース:https://qiita.com/takepan/items/2583cbe053b0d46bacbd
【パターン2】
~/.ssh/config
に、下記を記載。
Host example.com
HostName example.com
IdentityFile ~/key/example.com.pem
User user
PubkeyAcceptedKeyTypes=+ssh-rsa
HostKeyAlgorithms=+ssh-rsa
参考ソース:https://blog.myntinc.com/2023/01/ossignandsendpubkey-no-mutual-signature.html
【パターン3】
-o ProxyCommand='nc %h %p'
というSSHコマンドオプションを追加する。
参考ソース:https://discussionsjapan.apple.com/thread/110211103
自分なりに調べて色々な参考ソースを読んでは試してみたのですが
知識も浅く、どうしても解決できません。
これを試せ、ここはどうなっているのか等のご指摘やご助言いただけますと幸いです。
何卒よろしくお願いいたします。

