You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
paramiko ssh server (2.9.0) always rejects authentication with rsa-sha2-256 and ssh-rsa publickey algorithms #1955
I tried paramiko 2.9.0 for server purpose, Client with rsa-sha2-512 publickey algorithm works fine, however the server always rejects authentication with rsa-sha2-256 and ssh-rsa publickey algorithms.
Testing using the following command and demo_server.py:
Can you please verify if the bug is partially fixed only as we still have issues to connect with Cyberduck and ssh-rsa to version 2.9.1? Refer to iterate-ch/cyberduck#12733 (comment).
Activity
bitprophet commentedon Dec 24, 2021
Weird that this didn't show up in the tests, likely an edge case that got overlooked given the usual focus on client side mode. Thanks for the report!
bitprophet commentedon Dec 24, 2021
Found a test that proves this, will dig into it based on your patch and get 2.9.1 out.
Changelog and test re #1955
Fix #1955
bitprophet commentedon Dec 24, 2021
2.9.1 released for this. Thanks again!
jun66j5 commentedon Dec 25, 2021
Thanks for the quick response and fix! Confirmed the issue goes away with paramiko 2.9.1.
ylangisc commentedon Jan 4, 2022
Can you please verify if the bug is partially fixed only as we still have issues to connect with Cyberduck and
ssh-rsato version 2.9.1? Refer to iterate-ch/cyberduck#12733 (comment).powo commentedon Jan 4, 2022
@ylangisc looks identical to #1961
teunis90 commentedon Jan 5, 2022
I can confirm that I still hit the same/similar bug on version 2.9.1 using RSA keys. If we switch to password login it does work.
Here's the debug trace:
Fails:
Works:
Also tried with settings:
Which does change the Key exchange agreements, but I still get the same error:
Code in
test-ssh.py:Cisco device does not support
ssh-dss, and password login is prohibited on production. Can I add anymore information to support resolving this issue?jun66j5 commentedon Jan 5, 2022
No. This issue is when using paramiko for server purpose. You've used as a client. Visit #1961.
teunis90 commentedon Jan 5, 2022
@jun66j5 thanks, missed that part. Will repost my message in #1961.