0

Thanks for your help!

I have a case where I need to generate an SSH key in Salesforce and share the public key with my client where SFTP server is installed. And then use this SSH for authentication while pushing some files to the external SFTP server.

Is this possible in Salesforce? If yes, how?

  • @DavidCheng I knew there was a duplicate somewhere, but I couldn't find it. Great job! – sfdcfox Dec 4 '19 at 1:09
  • Hi, pk312. We've marked this question as a duplicate, as it has already been asked a few times before. You'll want to do a search for other answers, but they're all basically the same: you can't do this directly, so you'll need a proxy. If you have any further questions, please let us know. If your question is substantially different than the other questions, please edit before asking us to reopen your question. – sfdcfox Dec 4 '19 at 1:12
1

Salesforce doesn't support interactive protocols like SFTP or POP3. You would need to write an intermediate proxy to convert an HTTP request to an SFTP request. See also this question.

| improve this answer | |
  • Thanks for your reply @DavidCheng. I did not find any thread that spoke about generating SSH using apex. Can someone help? – pk312 Dec 6 '19 at 1:24
  • @pk312 You can't generate ssh using Apex, which is why you can't find anything about it. – sfdcfox Dec 6 '19 at 1:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.