For When You Can't Have The Real Thing
[ start | index | login ]
start > Kali > key type ssh-rsa not in PubkeyAcceptedAlgorithms

key type ssh-rsa not in PubkeyAcceptedAlgorithms

Created by dave. Last edited by dave, 2 years and 12 days ago. Viewed 725 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(2022-03-07)

Problem

I upgraded ssh and now when I try to pubkey in it demands a password. In /var/log/auth.log, I find lines to the effect of:

userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

Solution

The "correct" solution is to regenerate your pubkeys with the latest version of putty's key generator.

If you can't or don't want to do that, you can hack:

In /etc/ssh/sshd_config, find:

PubkeyAuthentication yes

...and below it add

PubkeyAcceptedKeyTypes=+ssh-rsa

...and restart sshd.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt