RA_FTP SFTP agent jobs fail with error "Algorithm negotiation fail"
Error Message :
Algorithm negotiation fail
com.uc4.ftpjob.DataTransferException: Connection exception.
Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
java.lang.RuntimeException: java.lang.RuntimeException: com.jcraft.jsch.JSchException: Algorithm negotiation fail
Connecting to an FTP Server that only accepts diffie-hellman-group14-sha1 as the key exchange algorithm fails with the following errors.
shows something like this in the job report:
Release : 3.X, 4.X
Component : RA FTP agent
Make sure you have Java Cryptography Extension (JCE) installed in order for the agent to run.
Link to Java Cryptography Extension (JCE): http://www.jcraft.com/jsch/
NOTE: all of the algorithms listed on the following page are supported: http://www.jcraft.com/jsch/
If Oracle Java 1.8 update 151 (8u151) or later is being used, JCE does not require a separate installation.
In this case, set the following Security property in the java.security file:
Download the Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files from Oracle Java SE download page under Additional Resources.
Unzip the downloaded file.
Copy local_policy.jar and US_export_policy.jar to the $JAVA_HOME/jre/lib/security directory to overwrite the existing JARS.
Once this is done you can set the following Security property in the java.security file: