The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
mithun_laha
1 year agoNew Contributor III
SFTP Connection with PPK file
Hi Everyone,
Has anyone worked on establishing an SFTP connection in extensibility rules using a PPK file? I am currently facing an issue where, despite setting the SshPrivateKeyPath property in the session options, I receive the error: "No supported authentication methods available (server sent: publickey)."
Any insights or solutions would be greatly appreciated.
Thank you,
Mithun
Hi Kamila,
Could you please try the following in the SshPrivateKeyPath:
sessionOptions.SshPrivateKeyPath = $"{BRApi.Utilities.GetFileShareFolder(si, FileShareFolderTypes.ApplicationRoot, Nothing)}\AppName\ppk_file.ppk"
If the above does not work, could you also try adding the port number in the sessionOptions?
Best regards,
Mithun
8 Replies
- KamilaContributor
Hi Mithun,
I have the same issue now, did you manage to solve it? Thanks!
- mithun_lahaNew Contributor III
Hi Kamila,
I hope this message finds you well.
Please follow the steps below to set up the SFTP connection:
- Save the .ppk file into the fileshare folder.
- Use the .ppk file in the sessionOptions variable (SshPrivateKeyPath)
If you have any questions or need further assistance, please don't hesitate to reach out.
Thank you,
Mithun- KamilaContributor
Thanks Mithun, I already did that and still have the error:
Any ideas? Thanks!
Related Content
- 3 months ago