Menu
  • HOME
  • TAGS

Veryfing fingerprints using SharpSSH while connecting to SFTP Server

ssh,sftp,public-key,sharpssh,rsa-key-fingerprint

The SharpSSH is stupid enough not to verify the host keys by default. You would have to re-implement SshBase.ConnectSession not to set StrictHostKeyChecking to no. And then use JSch.getHostKeyRepository().add() to configure expected host key (or implement HostKeyRepository interface). Or implement UserInfo interface, particularly the promptYesNo method. ...