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

sft hangs on connect when using putty ppk file as private key #84

Closed
sbsrouteur opened this issue Oct 26, 2020 · 1 comment
Closed

sft hangs on connect when using putty ppk file as private key #84

sbsrouteur opened this issue Oct 26, 2020 · 1 comment

Comments

@sbsrouteur
Copy link

Hi,

I have a new project with gulp and I need sftp to upload to my web server. I have a putty generated .ppk encrypted key that works fines for ssh and filezilla. However when using sftp in gulp from VS.Code it hangs after "authenticating using private key".

I have updated my ssh2 lib to latest version (AFAIK), but no chance.

I have been able to add some log traces in the sftp lib to see that I go all the way to c.connect().
No trace anywhere in ssh2 lib seem to work.

Is there something I did wrong? Or is this version of sfp deprecated and I should use another one?

@sbsrouteur
Copy link
Author

self solution to the problem.
Stop using gulp-prompt to get the privatekey password.
Removed call to prompt in the pipeline, and sftp works like a charm.
Not compatible with putty ppk files though. Need converting to older ssh format.

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

No branches or pull requests

1 participant