I am facing a problem with UnknownHostKey: servername
, when trying to verify the host key using:
jsch.setKnownHosts("target/hostname_keys");
Is it possible to use hostkey file in SSH2 format that looks like this
---- BEGIN SSH2 PUBLIC KEY ----
AAAAB3NzaC1kc3MAAACBAKKQ7hwq7
.....
w5Uw==
---- END SSH2 PUBLIC KEY ----
with JSch?
Is there some good libraries that can work with SSH2 keys?