JenyaKh
JenyaKh

Reputation: 2498

PubkeyAcceptedKeyTypes=+ssh-rsa with Paramiko

Is there a way to have the same behavior with Paramiko, as when using ssh option:

-o PubkeyAcceptedKeyTypes=+ssh-rsa

Upvotes: 4

Views: 3954

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202168

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)

Upvotes: 1

Related Questions