Re: I can´t connect with private key without password
Now I need a dll that works find with 32 bit
WinSCP .NET assembly works both in 32 and 64-bit.
Now I need a dll that works find with 32 bit
SessionOptions.SshHostKeyFingerprint
and it works perfectly. Now I need a dll that works fine with 32 bit.
SessionOptions.SshHostKeyFingerprint
.
.ppk
file without password with .NET assembly with session options C#, this is my code
SessionOptions sessionOptions = new SessionOptions();
sessionOptions.Protocol = Protocol.Sftp;
sessionOptions.HostName = "xxx.xxx.xxx.xxx";
sessionOptions.PortNumber = 22;
sessionOptions.UserName = "user";
sessionOptions.SshPrivateKeyPath = path
using (Session session = new Session())
{
try
{
session.Open(sessionOptions);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set