JSch SFTP security with session.setConfig("StrictHostKeyChecking", "no"); -


i use jsch private key ftp file

  1. jsch.addidentity(privatekeyfile);
  2. session session = jsch.getsession( "user", "domain.com" ,22);
  3. session.setconfig("stricthostkeychecking", "no");

line 3 in question. without line, jsch not work.

my question is: line 3 make sftp transfer insecure?

disabling stricthostkeychecking option make connection less secure having option enabled, because let connect remote servers without verifying ssh host keys. if option enabled, able connect servers keys known ssh client.

you have decide means specific use case - servers connecting on private, local network or connect on internet? testing or production environment?

when in doubt, better err on side of more security. recommend enabling strickthostkeychecking , using setknownhosts method provide file contains remote host keys.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -