PubkeyAcceptedKeyTypes=+ssh-rsa with paramiko

Question:

Is there a way to have the same behavior with paramiko, as when using -o PubkeyAcceptedKeyTypes=+ssh-rsa ssh option?

Asked By: JenyaKh

||

Answers:

Paramiko uses ssh-rsa by default. No need to enable it.

But if you have problems with public keys, it might be because recent versions of Paramiko first try rsa-sha2-*. And some legacy servers choke on that. So you likely rather want to disable the rsa-sha2-*.

For that, see:
Paramiko authentication fails with "Agreed upon 'rsa-sha2-512' pubkey algorithm" (and "unsupported public key algorithm: rsa-sha2-512" in sshd log)

Answered By: Martin Prikryl
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.