Re: SshHostKeyFingerprint not working in C#
Hi Martin
I have tried using the content of a PUB key such as sessionOptions.SshHostKeyFingerprint ="ssh-rsa AAAAB3NzaC1y..." and I just get a timeout.
I have tried to copy all the settings used in FileZilla that connect using SFTP just fine.
I have tried using sessionOptions.GiveUpSecurityAndAcceptAnySshHostKey = true; and this makes no difference.
It would be useful to have the XML comments file for your DLL, to give examples.
It would be useful to have an example of setting up an SFTP server (eg this is the PUB/Key pair created) and then what is used in the code.
I have tried SSH2 and ssh-rsa formats but no joy.
I an not that keen of reverting back to classic FTP.
Is there anyway I can use the details in FileZilla that works and use those in WinSCP?
Thanks in advance
Doug
It's unlikely that the timeout has anything to do with host key.
Note that you can have WinSCP generate a code template based on your FileZilla settings:
https://winscp.net/eng/docs/guide_filezilla_automation
If you still have problems, start a new thread and post a complete session log file.