
我有一個正在運行的 ec2 實例,並且能夠使用 ubuntu 20.04.5 LTS 連接 ssh (PEM) 文件,但是升級到 ubuntu 22.04.1 LTS 後它無法工作。我沒有更改任何設定或其他任何內容。驗證日誌顯示以下錯誤
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
請協助解決問題
更新
這是我在 ec2 上收到的通知
Authenticating with public key "imported-openssh-key"
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-1019-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Sep 5 13:09:50 UTC 2022
System load: 0.0 Processes: 102
Usage of /: 35.7% of 7.57GB Users logged in: 0
Memory usage: 15% IPv4 address for ens5: IP
Swap usage: 0%
0 updates can be applied immediately.
New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.