Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Accept Host Key Automatically?

$
0
0
Hello,

I am using this library within a .net application to connect to an SFTP server. It has been running for about a year without issue, and still is. I connect to the server through an automated process that requires no intervention.

The administrator of the SFTP server is changing the host key and has notified users that we need to accept the host key. I never had to accept the host key in the first place when I was initially connecting, so my instinct is that I don't need to do anything to accept the new one.

I don't do anything with the HostKeyReceived event, and I see that the default value of CanTrust in HostKeyEventArgs is true.

Does that mean that I am correct, that the new Host Key will be trusted by default?

Thanks,
Chip

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>