-
Notifications
You must be signed in to change notification settings - Fork 18
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
More infos if there were errors #19
Comments
Could you provide some examples? How did the connection go wrong in your case? Please feel free to provide pull requests as well. |
Oh, and please add yourself to the contributors file of course! |
I cannot say that, because there are no detailed error messages :( I'm not familiar with python, I just use your script. |
The reason for your issue could be one of the following:
The SSHKeyDistribut0r distinguishes between the following errors already:
I would like to extend/adjust this list with more detailed statements but this would require very detailed bug reports because I need to reproduce specific issues at first. |
I have now the the "Cannot connect to server because of an authentication problem." error. I got the script running and added some lines to the
So I got:
But connecting with the ssh command is working, so this cannot be a wrong key. Also the script connects properly to several servers where the ssh-key is the same. I checked this more than 10 times. Thats really strange. |
Thanks a lot for debugging. So this is a different error message than the original one, right? I did no tests on non-Linux systems and this is OS X, right? The issue might be that paramiko does not have access to the SSH key on OS X. Could you try the same test case with a Linux installation? Did you experience the same problem with all servers or only once? |
Yes, thats a different message now. Maybe i case of testing a lot of ssh-keys. Linux might be a idea to test, but I have no experience with that. On MacOS there are only two servers with this problem. I tried this on three different MacOS-machines, everytime the same result. |
I tried also to get it running on linux with no success, but different error messages (paramiko version 2.7.2):
|
Error also depends on the version of Get this error on mac and also on linux (Raspberry Pi) with version 2.4.2:
|
I don't have any idea how to debug this unless having access to your systems. However, thanks for further investigating the issue. Are you sure, that you have a valid RSA private key? The last paramiko exception seems weird to me - I expect that this exception is not raised unintended. This would explain that paramiko stated a failed authentication in other cases you described. |
Ok, I found the problem! On the server the RSA-SHA1-Hashing for RSA-keys was disabled and the newer RSA-SHA2-Hashing is active. Thats something which paramiko is not handling I guess. Not sure, if this is the same problem: paramiko/paramiko#1520 |
There seems to happen something: paramiko/paramiko#1643 |
Thanks for keeping us in the loop! :-) |
Can you please implement the version 2.9.1 of paramiko? Then this issue should be solved, thanks! |
@thomai friendly reminder :) |
It would be very nice to get more information about server connects that failed.
Is it possible to have more infos instead of only "Cannot connect to server."?
Background of this question is, that the dry-run ("-n") option works, but the distribution fails on some server where the connect with my ssh-key is working properly.
The text was updated successfully, but these errors were encountered: