ssh2-python is unable to establish connection with RHEL 9 SSHD
ogajduse opened this issue · 2 comments
Bug reports
Steps to reproduce:
- Run the ssh2-python example
python publickey_fromfile.py --host 10.1.5.60 -u root /home/.ssh/id_rsa_foreman_proxy ls
against RHEL 9 system - client side:
ssh2.exceptions.AuthenticationError
, server side:sshd[7101]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Expected behaviour: Client connects to the host, and runs ls
.
Actual behaviour: AuthenticationError was thrown
Additional info:
Versions: ssh2-python 0.27.0
, Fedora 36, Python 3.10.5
I can not see this issue when using the CLI OpenSSH client.
Also, I can not see it when using the publickey_fromfile.py
and ed25519
key type.
And the issue does not pop up even when using another example: python password_auth.py --host 10.1.5.60 -u root mysecretpass ls
Logs: https://gist.github.com/ogajduse/fce8da7f0131be623fe866df9b67e5e0
Is this issue related to libssh2/libssh2#634?
Hi there,
Thanks for the interest and report.
Is this issue related to libssh2/libssh2#634?
It is, and has been resolved by 1.0.0 release.