-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ColdFusion 2021 and jsch connecting using CFFTP/SFTP #789
Comments
The install that worked was using jsch-0.1.54.jar |
Hi @SethDunn |
Hi @mwiede |
@mwiede So I assume that this is what we will need, and it will be added to the java.config file. |
@SethDunn sorry I have no idea about cold fusion. I the config file can be used to set system properties, then it should work |
@mwiede Since this is part of the jsch jar file. If I wanted to go in and edit this file to re-enable the CBC algorithms. Is their a fairly "easy" way to do that? |
@mwiede Connection Opened - struct ErrorCode | 82 -- | -- ErrorText | Algorithm negotiation fail: algorithmName="kex" jschProposal="ssh-rsa,aes256-cbc,ext-info-c,[email protected]" serverProposal="diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ext-info-s"ReturnValue | 82 Algorithm negotiation fail: algorithmName="kex" jschProposal="ssh-rsa,aes256-cbc,ext-info-c,[email protected]" serverProposal="diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ext-info-s" Would the flag you suggested "-Djsch.kex=ssh-rsa,aes256-cbc" |
@mwiede Had to add this to the jvm.config file.....what CF uses to pass arguments to Java -Dcoldfusion.sftp.enable-ssh-rsa=TRUE -Dcoldfusion.sftp.fingerprint=md5 -Djsch.cipher=aes128-cbc |
@SethDunn good to know, thanks! On the other hand I want to encourage you to clarify with the server admins, why they still have this old configuration and why not consider upgrading. The new default settings of openssh and jsch are there for a reason, security! |
@mwiede |
We are having an issue with an upgrade of ColdFusion 2021 update 11 -> Update 17
We had a connection to a secure FTP server that worked, now after upgrade it no longer works.
The algorithms we are proposing don't work with the server, the server uses older ones.
ErrorCode | 82
ErrorText | Algorithm negotiation fail: algorithmName="cipher.c2s" jschProposal="aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]" serverProposal="aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc"
ReturnValue | 82 Algorithm negotiation fail: algorithmName="cipher.c2s" jschProposal="aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]" serverProposal="aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc"
Succeeded | NO
It is similar to this issue:
#40
and this one, the dropbear post is exactly what we get
#37
How would we be able to enable the algorithms their server is looking for? Like aes256-cbc or aes128-cbc?
The text was updated successfully, but these errors were encountered: