sshj icon indicating copy to clipboard operation
sshj copied to clipboard

KeyExchanger.java logs printing keys in console

Open sobiakulasekaran opened this issue 5 years ago • 1 comments
trafficstars

Im trying to connect to the host using finger print authentication. My connection is successfull however my logs is having the error message being printed like net.schmizz.sshj.transport.TransportException: [HOST_KEY_NOT_VERIFIABLE] Could not verify ecdsa-sha2-nistp256 host key with fingerprint 7b:e9:71:6a:a0:2f:eb:46:be:9f:4f:d7:45:a3:f5:5b for '...**' on port ** How to avoid this logs being printed. Pls suggest

sobiakulasekaran avatar Oct 27 '20 20:10 sobiakulasekaran

@sobiakulasekaran The Fingerprint that is being printed is from the public key, and as such it is not secret information. If you look at OpenSSH it also does the same when you use the console/terminal to connect to a host.

hierynomus avatar Dec 08 '20 08:12 hierynomus