gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

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

Closed sbsrouteur closed 3 years ago

sbsrouteur commented 3 years ago

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 commented 3 years ago

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.