sshj
sshj copied to clipboard
KeyExchanger.java logs printing keys in console
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 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.