-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow the use of private keys (deployment keys) #17
Comments
From a quick look at it it should be possible. How would you store the key? as file? as secret? |
I think as a secret would be the best way to go. The only "problem" i see is that you would have to write the secret somewhere down into a temporary file and then specify a link to it in the lftp command. Because as far as i have seen its impossible to supply the ssh key as an argument. (propobly because its multiline) |
I had some success with the ssh-agent and reading it from an env var through stdin. Trying to throw something together soonish. eval $(ssh-agent)
echo "$SSH_KEY" | tr -d '\r' | ssh-add -
lftp -c 'set sftp:auto-confirm yes; set sftp:connect-program "ssh -v"; ... |
Using |
I thought about this and i think using
|
Hey,
when i use your tool to deploy to SFTP servers, sometimes they dont allow username/password authentication and they demand the use of public/private keys.
What are your thoughts on that? Whould you be open to supporting that as well?
Thanks so much and greetings
Leo
The text was updated successfully, but these errors were encountered: