I am building an application which uses C# code to connect to an SFP server. The other party says that they do not provide key files. When connecting to their SFTP server via FileZilla only using host + user + passphrase + port, I successfully connect (after accepting the host key that appears on the pop up window).
However when running the code I keep getting the below exception:
SessionOptions.PrivateKeyPassphrase is set, but neither SessionOptions.SshPrivateKeyPath nor SessionOptions.TlsClientCertificatePath is set.
I am using WinSCP.SessionOptions
to build the connection.
How can establish a connection without having to point to a .ppk file as FileZilla does?
Many thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…