Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to work with Ubuntu 22 #130

Open
mustafa0x opened this issue Jun 3, 2022 · 5 comments
Open

Doesn't seem to work with Ubuntu 22 #130

mustafa0x opened this issue Jun 3, 2022 · 5 comments

Comments

@mustafa0x
Copy link

The following gives me AuthenticationException with paramiko-ng, while it works fine with paramiko-2.11.0.

import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('<ip>', username='<user>')

The host is runs Ubuntu 22. Pointing to an Ubuntu 20 server resolves.

@ploxiln
Copy link
Owner

ploxiln commented Jun 5, 2022

I think this is due to using an RSA key - the original protocol for signing with the RSA key is to use sha1, but that's frowned upon now, and disabled by default in openssh on ubuntu-22.04. There's a new way to sign using sha-256 or sha-512, I haven't added this feature to paramiko-ng yet, but it was added to paramiko-2.9.0.

@mustafa0x
Copy link
Author

mustafa0x commented Jun 5, 2022 via email

@ploxiln
Copy link
Owner

ploxiln commented Jun 5, 2022

There's no rough estimate when this might be fixed, right?

Considering that I haven't really done any work on this project in the last 6 months, that's a good assumption :) but who knows, maybe I'll get back into it now ...

@mustafa0x
Copy link
Author

So, funny thing, I ran pip uninstall paramiko-ng && pip install paramiko, and my fab script is working.

I assume fab-classic isn't fully compatible with paramiko and will break in some odd ways, but it's smooth sailing so far.

@ploxiln
Copy link
Owner

ploxiln commented Jun 9, 2022

fab-classic should be pretty much fully compatible with original/upstream paramiko, and there's even a trick to making it explicitly depend on original/upstream paramiko instead of paramiko-ng if you need to install it again:

PARAMIKO_REPLACE=1 pip install --no-binary fab-classic 

(mentioned in https://github.com/ploxiln/fab-classic#install)

(But it is usually necessary to uninstall paramiko or paramiko-ng before switching to the other, otherwise things are silently mixed-up, so it's good you did that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants