127
Views
10
Comments
Solved
[SFTP] Connection with pem File and Password
sftp
Service icon
Forge asset 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

2018-03-26 20-39-26
David Epps
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

2018-03-26 20-39-26
David Epps

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

2022-05-05 13-19-42
Philipp

Hi David,

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

Best regards,

Philipp

2018-03-26 20-39-26
David Epps

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

2022-05-05 13-19-42
Philipp

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

2018-03-26 20-39-26
David Epps
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

2022-05-05 13-19-42
Philipp

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

Best, Philipp

UserImage.jpg
Syed Amjad

Hi Philipp,

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

Please help.


2021-09-30 12-03-33
Gaurav More

hi philipp,

                 same concern that syed raise could you please help with this.



2020-03-30 22-22-21
Nick MATES

I am having the same issue - despite saying this is "solved" the most recent version of the forge component doesn't allow me to pass both a passphrase and a key

2022-12-30 09-46-57
Deepika Patel

Hi @Philipp,

I have a similar requirement I need to connect to an SFTP server using both a key and a passphrase. 
Can you please help me with this.

Regards,

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