java - how to convert putty known host entry in the registry to Jsch readable known host file -
java - how to convert putty known host entry in the registry to Jsch readable known host file -
i using jsch library jcraft.
there method session.setconfig() , can
properties config = new properties(); config.put("stricthostkeychecking", "no"); session.setconfig(config); but want add together known host file. running windows machine exported putty registry file , added following.
config.put("userknownhostsfile", "c:\\*****\\knownhost.txt"); but throws exception.
com.jcraft.jsch.jschexception: unknownhostkey: so think text file might not configured. can 1 point how can create list of known hostkeys , how add together them session object.
also key value accepted session.setconig()
thanks
there method in jsch class: setknownhosts(filename), have tried instead of putting in config?
java jsch ssh-keys
Comments
Post a Comment