88
Views
7
Comments
Solved
[SFTP] Connection with pem File and Password
sftp
Service icon
Forge component by Paulo Ramos
Application Type
Traditional Web, Mobile, Reactive, Service

Hi All,

I have to connect to a SFTP using a PEM file as well as a password for the file. Is this support anyhow? I didn't see an option to do so. I'm getting the following error: "Private key is encrypted but passphrase is empty."

Thanks and regards,

Philipp

Solution

Hi Philip,

Apologies for the delay. I've just uploaded a new version of the SFTP component to the Forge with the added Passphrase parameter.

I don't have any SFTP sites that I can actually use to test this with, so if you could give it a try and let me know, that would be great.

Thanks,

David

Hi Philipp,

The PrivateKey Actions take a privatekey in binary form but don't currently accept an associated passphrase.

I'll take a look at what's required to get this working.

Thanks,

David

Hi David,

Thanks, that would be awesome.. It was interesting that the error note already considers the required passphrase.

Best regards,

Philipp

Hey Philipp,

Yep, it looks like the passphrase is a parameter when creating the PrivateKey object, hence it being explicitly named in the exception. Hopefully it's not a big deal to do - it doesn't appear so at first glance.

Thanks,

David

Hi David,

I hope things are going well..

Just want to follow up on our previous messages - have you been able to have a look into the topic?

Thanks and regards,

Philipp

Solution

Hi Philip,

Apologies for the delay. I've just uploaded a new version of the SFTP component to the Forge with the added Passphrase parameter.

I don't have any SFTP sites that I can actually use to test this with, so if you could give it a try and let me know, that would be great.

Thanks,

David

Thanks again David! Works now very well with Key File and Passphrase.. 😃

Best, Philipp

Hi Philipp,

Can you please help how did you achieve to put Passphrase, there is no parameter available.

Please help.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.