-
Notifications
You must be signed in to change notification settings - Fork 187
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
ssh without sftp ? #4199
Comments
update: I will try to go further and launch some computation soon, to see if it's robust enough (not yet, I guess). |
For moving the files, couldn't you use In general, the only downside I could see of adding this as a fallback is that users who have SFTP access (but misconfigured for some reason) would not notice, and end up with potentially degraded performance. |
Indeed, it would be probably a wise idea to use this as a different transport plugin (maybe with common code in a base class 'SshBase' and then reimplementing the differences in the two implementations). Note that with the current implementation, if you try to transfer a file (via STDOUT/STDERR as you will be doing) larger than a few MB, it will probably hang. This does not pop out so often in AiiDA because we typically big transfer files via SFTP ;-) I think I fixed this in this PR: #3787 but never managed to properly test it. I suggest that you try to see if you can transfer "large" files (I think ~50MB is already more than enough), see if it hangs, and then use the implementation of #3787. If you test it and report back that it works correctly (no locks, and no data corruption) we'll merge it. |
So, I finally took the time to do some tests and cleanups.
|
@adegomme I'm closing this issue since you have released your own plugin to do this. Note that I'm working now on #3787 and #3814, so please monitor those to update your plugin (I'm going to ping you there soon as there is a 'backward-incompatibility' to be taken care of by you after #3787 is merged) |
I recently stumbled on a supercomputing center where SFTP server is not running and actually forbidden (executing the server manually is technically possible, but not really an option), while SSH access is otherwise fully functional. I asked, and the underlying idea is to prevent users from using SSHFS and sharing their remote home/work folders without any control. No comment on that, but maybe this policy will be applied by other supercomputing centers at some point.
This prevents Aiida from connecting to the system, as it uses paramiko's sftp client automatically. This raises a few questions about how to proceed in this case.
The text was updated successfully, but these errors were encountered: