-
Notifications
You must be signed in to change notification settings - Fork 11
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
Public key authentication fails with Ubuntu 22.04 LTS servers #78
Comments
Some extra info after further testing. I tried this with upstream paramiko (by using the
With upstream paramiko, it works correctly, giving the expected result:
In working this out I also discovered that this was already reported in ploxiln/paramiko-ng#130 🤦♂️ Whilst this workaround does give the desired behaviour, it's still a problem in the default out-of-the-box installation. |
Yup, this is a paramiko-ng issue. The work-around, if not just use upstream paramiko instead, is to use a different key type, like ed25519 or ecdsa. |
That's what we've had to do in our code, but it's not ideal as the
This is a possibility, but the RSA is default key type in many SSH installs, so does represent a slight inconvenience in set up. I guess the long-term "fix" is deciding whether |
Same issue here. Any reason to prefer paramiko-ng to paramiko? |
Steps to replicate:
fab hello
Expected result:
The instance executes the
hello
command on the remote server and then disconnectsActual result:
Authentication fails and the user is prompted to enter a password
If I follow these same steps, but instead try it on a Ubuntu 20.04 LTS server it works correctly. I haven't tried this with any non-LTS releases.
Versions:
Local machine:
I get the same result with other versions of Python too (e.g. 3.8.x).
Remote machine:
The text was updated successfully, but these errors were encountered: