spectrumsofttech
asked on
How to use JSCh for file transfer and download?
I trying to use JSCH SFTP for transferring file from remote client to local host and vice versa. My problem is even after creating private key for the client using ssh-keygen -C "user@hostID" -t rsa, and adding jsch.addIdentity(privateKe y, passphrase), during connection it show warning like :-
"The authenticity of host 'hostID' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx :xx:xx:xx: xx:xx:xx:x x.
Are you sure you want to continue connecting?".
I know that including a statement "config.put("StrictHostKeyC hecking", "no");" will not show this warning but it may not be the best practice in terms of security.
I'm using the following code as my reference:-
http://www.jcraft.com/jsch/examples/Sftp.java.html
"The authenticity of host 'hostID' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx
Are you sure you want to continue connecting?".
I know that including a statement "config.put("StrictHostKeyC
I'm using the following code as my reference:-
http://www.jcraft.com/jsch/examples/Sftp.java.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)