.Net Library Can't get connection to server
Hi,
dont know what to to. Getting a WinSCP.SessionRemoteException: Rechner-Schlssel wurde nicht berprft! etc...
My code:
What am i doing wrong? I also tried adding the Path to the sshprivatekeyfile:
but nothing changed.
Maybe someone can help me, didnt find something related in the FAQ, as far as i can see...
dont know what to to. Getting a WinSCP.SessionRemoteException: Rechner-Schlssel wurde nicht berprft! etc...
My code:
SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Sftp, HostName = "ftp.de", UserName = "user", Password = "pwd", SshHostKeyFingerprint = "ssh-rsa 1023 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx", }; using (Session session = new Session()) { // Connect session.Open(sessionOptions); }
SshPrivateKeyPath = "C:\\temp\\",
Maybe someone can help me, didnt find something related in the FAQ, as far as i can see...