-
Notifications
You must be signed in to change notification settings - Fork 3
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
SFTP backend does not use local SSH-client's config #37
Comments
Since borgstore is using paramiko's Example on stackoverflow: https://stackoverflow.com/a/78088156 (mind, though, |
https://github.com/borgbackup/borgstore/blob/master/src/borgstore/backends/sftp.py#L43 pretty much shows, that there's currently no way for passing key files used as auth method against the SFTP-backend. |
I tested the code with an ssh key loaded into the ssh-agent, but I didn't test yet using it with a ssh config. Initially, I also thought that the username is a required part of the sftp url, but later I removed that (and it automatically uses the current logged-in username then). Thanks for the stackoverflow link, I'll do some experiments with a ssh config later. |
Thanks a lot! Commented in #38 (comment) Also what I learned and is good to know: passing keys via agent works implicitly, regardless! |
including support for configured IdentityFiles
- support configured IdentityFiles - parse user and system ssh config - prefer values in url over config - add note about missing ssh_config.d/* support
sftp: add support for ~/.ssh/config, fixes #37
Coming from duplicity - which AFAIK also uses paramiko for accessing SFTP endpoints - I expected to be able to log into the SFTP backend the same (or similar) way.
For duplicity using the SFTP backend my URL is rather simple:
sftp://bck-host//storage/backup/duplicity
.User, Port, IdentityKeyFile, etc. are supplemented from respective host defined in
~/.ssh/config
.Example ssh-config-file:
While it would be nice for borgstore to also use the local SSH-client's config (I figure paramiko already provides functionality for that), I'd at least like to have the possibility / to know how to pass an IdentityFile for login to the SFTP-server.
Is there (already) a way for doing so?
The text was updated successfully, but these errors were encountered: