Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Tiziano Bettini Srl

Thank you very much!
I will stay connected, if one day it is in the plans to implement the function, I will gladly use it.
Best regards!
T.
martin

Re: PAM Challenge

Unfortunately, WinSCP .NET assembly does not support interactive authentication prompts yet.
Tiziano Bettini Srl

PAM Challenge

Hi all,
I would write to you for advice, if possible.
I am experimenting an SFTP connection to an embedded machine using WinSCP .NET Assembly inside a PowerShell script.
Login process involves an SshPrivateKeyPath (with SecurePrivateKeyPassphrase) and everything works perfectly so far. But logon is multilevel, and there is a PAM OTP challenge, also, based on an OATH pseudo rolling code (the appliance suggests an eight-digit integer that is provided to an internal tool that converts it into a six-digit integer that must be provided as a PAM password).
If I use a test PAM module that accepts a fixed six-digit code, I can pass it as a string to the WinSCP.SessionOptions Password property and the system correctly completes the login.
However, I would need the assembly to print out the PAM challenge prompt and then allow me to enter the six-digit code related to the eight digits that the prompt suggests.
Is there a way to accomplish this task or I need to disable PAM challenge?
Thank you very much in advance.

Tiziano