-
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
Support None
for SSH key file specification in verdi computer configure ssh
#4101
Comments
Are you sure you can't use $ verdi computer configure ssh 3
Info: enter "?" for help
Info: enter "!" to ignore the default and set no value
User name [aiida]:
port Nr [22]:
Look for keys [False]:
SSH key file []: ! |
Hi @chrisjsewell ,
|
Hi, I think I had fixed it a few days ago here: #4055 Could you check that this fix works (it's now in develop)? |
I just tested this on the tutorial VM:
Is this correct or should there be |
If you check my fix, you'll see that in practice it's a workaround to ignore empty strings for the key_filename (they won't be passed to paramiko) so this should work |
Currently, when configuring an SSH connection, one must specify an SSH key. It no value is specified, an empty string is stored as the key path and so breaks the transport.
When port forwarding (see also #4100), it would be convenient to be able to not specify an SSH key. An empty string here should be interpreted as
None
and handled.This is different to local transport as we want to get to somewhere that is behind an SSH connection, it's just that for the local leg we don't need to present an SSH key.
The text was updated successfully, but these errors were encountered: