Skip to content
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 PrivateKey Support #28

Closed
isaozler opened this issue Feb 1, 2016 · 13 comments
Closed

SFTP PrivateKey Support #28

isaozler opened this issue Feb 1, 2016 · 13 comments
Milestone

Comments

@isaozler
Copy link

isaozler commented Feb 1, 2016

Hi @lukasz-wronski,

Do you guys planned to add a privateKey key in ftp-sync.json?

"privateKey":"/here/is/my/key"

something like this would fix this I guess

privateKey: require('fs').readFileSync('/here/is/my/key')

@lukasz-wronski lukasz-wronski added this to the v0.3.x milestone Feb 1, 2016
@lukasz-wronski
Copy link
Owner

Thanks for your request. I guess I can add it easily, just need to check if my sftp library supports it.

@isaozler
Copy link
Author

isaozler commented Feb 1, 2016

ssh2 @ npm does

@lukasz-wronski
Copy link
Owner

Cool, that's the one I'm using so I'll definitely add this to extension soon...

@isaozler
Copy link
Author

isaozler commented Feb 1, 2016

Thanks @lukasz-wronski this would help working with @microsoft /vscode synchronously on aws projects

@frux
Copy link

frux commented Feb 12, 2016

+1! There is no extension with normal sftp supporting yet. Please add this feature!

@lukasz-wronski
Copy link
Owner

@isaozler, @frux: You can test it now in 0.3.1 version of extension, privateKeyPath parameter can be added to config file.

@isaozler
Copy link
Author

it works, wunderbar :) 👍

@ransoni
Copy link

ransoni commented Apr 4, 2016

Does it have support for password protected private keys?

@lmnoop
Copy link

lmnoop commented Jun 9, 2016

Note to Windows peeps about what wasn't immediately obvious to me:

  • Using PuTTYgen, you want to export your private key in OpenSSH format.
  • Passphrases don't seem to be supported.
  • "privateKeyPath" backslashes need to be escaped, like so: "C:\\Users\\username\\.ssh\\private_key_file"

@sotirosn
Copy link

The above comment needs to be put in the readme file. It has taken me hours to find it.

@smedsrud
Copy link

adding support for "passphrase": would do the trick

@darkflame470
Copy link

It gets stuck on "sync prepare in progress" when you use an ed25519 key. Might want to put that it only supports RSA keys.

@raimis001
Copy link

Its posible use .pem file for privateKeyPath?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants