I can´t connect with private key without password
Hi,
I trying to connect SFTP with
The message I receive when trying is:
Some suggestion?
Thanks!!!!
I trying to connect SFTP with
.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); } }
I try to connect with the graphical interface with the same configuration and it works at the first.SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set
Some suggestion?
Thanks!!!!