Ubuntu 22.04 "Server refused our key" trying to connect via SSH [RESOLVED]

0

Posting this solution to help others who may come across this problem.

The default rsa KeyPairs generated with the EC2 console appear to be NOT accepted by default on the Ubuntu 22.04 image.

Connection attempts result in a "userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms" message in /usr/log/auth.log

Creating a ECDSA keypair in Puttygen and the copying the public key text (from the top of the PuttyGen screen) into the /home/ubuntu/.ssh/authorized_keys seems to fix the issues I was having.

Hope this helps others !!.

已提问 2 年前418 查看次数
1 回答
0
Judith
已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则