I am working on FIPS requirement for which i have to use ecdh-sha2-nistp384 as kex algorithm. I changed the config by using
session.setConfig("StrictHostKeyChecking", "no");
session.setConfig("CheckKexes", "");
session.setConfig("kex", "ecdh-sha2-nistp384");
session.setConfig("ssh-rsa", "ecdsa-sha2-nistp384");
When I am putting this in the code the issue is I am getting the following exception.
com.jcraft.jsch.JSchException: verify: false
which seems like too generic to me. I serached a lot but did not find any person using ecdh for kex using JSch any help will be appreciated.