-
Notifications
You must be signed in to change notification settings - Fork 192
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
Issue with private keys when updating to AiiDA 1.3.1 #4372
Comments
Thanks for the report @JPchico . Could you please add the version of |
Sure the version of |
There are a couple of reports on the internet of The fact that the problem goes away if you specify the public key (which cannot be used to authenticate) suggests to me that somehow that leads paramiko to another codepath which then picks up the private key (or even another private key) nevertheless. I just want to stress that this is not a bug across the board (I personally cannot reproduce it, even with the latest version of paramiko). @JPchico Would you mind creating a new private key using |
P.S. What is the first line of your private key - is it
|
Just to exclude another possibility (that the old key is broken somehow and ssh previously ended up using a different key), please check that the old key is indeed working for the connection using something like
|
So I tried producing a new ssh key with I checked that the previous ssh key that I was using is in the
Which is a bit surprising, I wonder if it was something due to a version of ssh-keygen that was installed in my Azure VM when I configured my profile the first time? |
Hi @JPchico , great to hear that you're back to a proper setup. What I can tell you looking from the outside:
It would be nice to figure out whether it is A or B, and so I'd still like you to do two things:
P.S. I did notice that paramiko has a whopping 196 open PRs which is a bit worrying... there does seem to still be development activity, though: https://github.com/paramiko/paramiko/graphs/contributors |
Hi @ltalirz I'm very surprised that it was working at all I wonder what was happening ..... I have used this key before with paramiko to do a small dashboard tracking some processes in that cluster, so I have no clue on what is the issue. I tried the The only thing I can imagine is that I'm using the cyclecloud service from Azure, and I'm using an ssh agent to ensure communication between server and remote. There seems to be some issues with paramiko that might be related to this problem? P.S. There seems to be some issues in the development of paramiko so the number of PRs is not surprising. |
Ok, thanks. As I mentioned, you may then want to open an issue on paramiko's tracker attaching your key.
I suspect that is what saved you earlier. paramiko has an interface to retrieve keys from the agent - @giovannipizzi may know more.
The issue that you linked is very old and I suspect it is outdated as of the 2.7 release.
Thanks for making me aware of this, I didn't know. @csadorf Perhaps paramiko should be added to the "watchlist". As mentioned in #3929, we may in any case consider switching to a different library such as parallel-ssh, both for performance and feature reasons. I'll close this issue for now since this seems to be an issue of paramiko with your specific OPENSSH key. |
Bug description
After updating
aiida-core
from the development branch (git hash 0094f70) computers previously configured are unreachable.verdi computer test
computer_name
failsverdi computer configure show computer_name
The lack of communication with the computer results in the inability to submit any jobs to the affected computer.
To solve the problem one can change the private key specified in the configuration for the public key.
Steps to reproduce
Your environment
The text was updated successfully, but these errors were encountered: