i try to connect to sftp server in my local machine i generate the knownHosts
file with the command ssh
and i use it like jsch.setKnownHosts(knownHosts);
but i would to run my job in other machine wish i didn't have access to his knownHosts
file
so i decided to disable the check of this rsa key and i wont to know if the action is safe i will use this line to disable it
session.setConfig("StrictHostKeyChecking", "no");