SFTP PrivateKey Support
isaozler opened this issue · comments
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')
Thanks for your request. I guess I can add it easily, just need to check if my sftp library supports it.
ssh2 @ npm does
Cool, that's the one I'm using so I'll definitely add this to extension soon...
Thanks @lukasz-wronski this would help working with @microsoft /vscode synchronously on aws projects
+1! There is no extension with normal sftp supporting yet. Please add this feature!
it works, wunderbar :)
Does it have support for password protected private keys?
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"
The above comment needs to be put in the readme file. It has taken me hours to find it.
adding support for "passphrase": would do the trick
It gets stuck on "sync prepare in progress" when you use an ed25519 key. Might want to put that it only supports RSA keys.
Its posible use .pem file for privateKeyPath?