Using paramiko I want to select the list of pubkey algorithm my key is in, do you know how I can run a similar command like:
sftp \
-i private_key.pem \
-P 22 \
-o"HostKeyAlgorithms=+ssh-rsa" \
-o"PubkeyAcceptedKeyTypes=+ssh-rsa" \
[email protected]
After some trouble, we were able to figure out the issue:
Mind you, it is a bad security usage to set
cnopts.hostkeys = Nonebut this is another story, I use it so that you don't reach other issues while trying to fix the pubkey one.