Unable to exchange encryption keys

Werner Stolz via curl-users <[email protected]> Mon, 24 Nov 2025 14:53:05 +0000
Newsgroups gmane.comp.web.curl.general
Message-ID <IA2PR16MB6480D738EF5C921ABA8F498ADED0A@IA2PR16MB6480.namprd16.prod.outlook.com>
--===============7110231780431539311==
Content-Language: en-US
Content-Type: multipart/related;
	boundary="_004_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_";
	type="multipart/alternative"

--_004_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_
Content-Type: multipart/alternative;
	boundary="_000_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_"

--_000_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

We have recently upgraded our version of curl because we are encountering m=
ore and more cases of being unable to establish connections
due to deprecated ciphers.

We first encountered this error in 2022, and the only suggestion was to upg=
rade our version of curl.  We have now done that, and the problem
actually seems WORSE.

Here is our version of curl.

curl --version
curl 8.14.1 (powerpc-ibm-aix7.1.5.0) libcurl/8.14.1 OpenSSL/3.0.10 zlib/1.2=
.13 libssh2/1.11.1 nghttp2/1.62.1 OpenLDAP/2.5.16
Release-Date: 2025-06-04
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipn=
s ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp =
ws wss
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos La=
rgefile libz NTLM SPNEGO SSL threadsafe UnixSockets

Here is the error message that we are getting. I have removed all the ident=
ifying information.

curl -k -v sftp://url.com:22/ --user 'USER:PASSWORD'
* Host url.com:22 was resolved.
* IPv6: (none)
* IPv4: octet.octet.octet.octet, 18.222.41.6
*   Trying octet.octet.octet.octet:22...
* Connected to io.envestnet.com (octet.octet.octet.octet) port 22
* libssh2 cryptography backend: openssl compatible
* User: USER
* Failure establishing ssh session: -5, Unable to exchange encryption keys
* closing connection #0
curl: (2) Failure establishing ssh session: -5, Unable to exchange encrypti=
on keys





Werner Stolz
Advisor, Senior Software Developer
Office: 848.305.7158
Mobile: 630.404.3815
Chicago
InvestCloud.com<https://www.investcloud.com/>  |  LinkedIn<https://www.link=
edin.com/company/investcloud/>

CNBC World's Top Fintech Companies 2024


  ________________________________

Electronic Privacy Notice. This e-mail, and any attachments, contains infor=
mation that is, or may be, covered by electronic communications privacy law=
s, and is also confidential and proprietary in nature. If you are not the i=
ntended recipient, please be advised that you are legally prohibited from r=
etaining, using, copying, distributing, or otherwise disclosing this inform=
ation in any manner. Instead, please reply to the sender that you have rece=
ived this communication in error, and then immediately delete it. Thank you=
 in advance for your cooperation.
  ________________________________

--_000_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
 #800000 2px solid; } --></style>
</head>
<body>
<font face=3D"Aptos" size=3D"2"><span style=3D"font-size:11pt;">
<div>We have recently upgraded our version of curl because we are encounter=
ing more and more cases of being unable to establish connections<br>

due to deprecated ciphers.</div>
<div>&nbsp;</div>
<div>We first encountered this error in 2022, and the only suggestion was t=
o upgrade our version of curl.&nbsp; We have now done that, and the problem=
<br>

actually seems WORSE.</div>
<div>&nbsp;</div>
<div>Here is our version of curl.</div>
<div>&nbsp;</div>
<div>curl --version</div>
<div>curl 8.14.1 (powerpc-ibm-aix7.1.5.0) libcurl/8.14.1 OpenSSL/3.0.10 zli=
b/1.2.13 libssh2/1.11.1 nghttp2/1.62.1 OpenLDAP/2.5.16</div>
<div>Release-Date: 2025-06-04</div>
<div>Protocols: dict file ftp ftps gopher gophers http https imap imaps ipf=
s ipns ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet =
tftp ws wss</div>
<div>Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerber=
os Largefile libz NTLM SPNEGO SSL threadsafe UnixSockets</div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div>Here is the error message that we are getting. I have removed all the =
identifying information.</div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div>curl -k -v sftp://url.com:22/ --user &#8216;USER:PASSWORD&#8217;</div>
<div>* Host url.com:22 was resolved.</div>
<div>* IPv6: (none)</div>
<div>* IPv4: octet.octet.octet.octet, 18.222.41.6</div>
<div>*&nbsp;&nbsp; Trying octet.octet.octet.octet:22...</div>
<div>* Connected to io.envestnet.com (octet.octet.octet.octet) port 22</div=
>
<div>* libssh2 cryptography backend: openssl compatible</div>
<div>* User: USER</div>
<div>* Failure establishing ssh session: -5, Unable to exchange encryption =
keys</div>
<div>* closing connection #0</div>
<div>curl: (2) Failure establishing ssh session: -5, Unable to exchange enc=
ryption keys</div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font size=3D"3"><span style=3D"font-size:12pt;"><img src=3D"cid:D5E0C=
[email protected]"> </span></font></div=
>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt;"><b>Wer=
ner Stolz</b></span></font></div>
<div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt;">Adviso=
r, Senior Software Developer</span></font></div>
<div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt;">Office=
: 848.305.7158</span></font></div>
<div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt;">Mobile=
: 630.404.3815&nbsp; </span></font></div>
<div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt;">Chicag=
o</span></font></div>
<div style=3D"margin-top:3pt;"><font size=3D"3"><span style=3D"font-size:12=
pt;"><a href=3D"https://www.investcloud.com/"><font face=3D"Arial" size=3D"=
2" color=3D"#C63663"><span style=3D"font-size:10pt;"><u>InvestCloud.com</u>=
</span></font></a><font face=3D"Arial" size=3D"2" color=3D"#C63663"><span s=
tyle=3D"font-size:10pt;">&nbsp;
</span></font><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt=
;">| </span></font><font face=3D"Arial" size=3D"2" color=3D"#C63663"><span =
style=3D"font-size:10pt;"> </span></font><a href=3D"https://www.linkedin.co=
m/company/investcloud/"><font face=3D"Arial" size=3D"2" color=3D"#C63663"><=
span style=3D"font-size:10pt;"><u>LinkedIn</u></span></font></a></span></fo=
nt></div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font face=3D"Arial" size=3D"2"><span style=3D"font-size:10pt;"><b>CNB=
C World&#8217;s Top Fintech Companies 2024</b></span></font></div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font size=3D"3"><span style=3D"font-size:12pt;">&nbsp;</span></font><=
/div>
<div><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size:12p=
t;"><u>&nbsp; ________________________________ &nbsp;</u></span></font></di=
v>
<div style=3D"margin-top:14pt;"><font face=3D"Times New Roman">Electronic P=
rivacy Notice. This e-mail, and any attachments, contains information that =
is, or may be, covered by electronic communications privacy laws, and is al=
so confidential and proprietary in nature.
If you are not the intended recipient, please be advised that you are legal=
ly prohibited from retaining, using, copying, distributing, or otherwise di=
sclosing this information in any manner. Instead, please reply to the sende=
r that you have received this communication
in error, and then immediately delete it. Thank you in advance for your coo=
peration.</font></div>
<div><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size:12p=
t;"><u>&nbsp; ________________________________ &nbsp;</u></span></font></di=
v>
<div style=3D"margin-top:14pt;"><font face=3D"Times New Roman">&nbsp;</font=
></div>
</span></font>
</body>
</html>

--_000_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_--

--_004_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_
Content-Type: image/jpeg; name="Picture (Device Independent Bitmap) 1.jpg"
Content-Description: Picture (Device Independent Bitmap) 1.jpg
Content-Disposition: inline;
	filename="Picture (Device Independent Bitmap) 1.jpg";
	creation-date="Mon, 24 Nov 2025 14:53:05 GMT";
	modification-date="Mon, 24 Nov 2025 14:53:05 GMT"
Content-ID: <[email protected]>
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsK
CwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQU
FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAAVAIgDASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSM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
I8U67deIdUsZg1vHdKSfOA+WR5GZi20fdHABwe1FFFNbHyvEOJq4jMJxqSuoaJbJLskj/9k=

--_004_IA2PR16MB6480D738EF5C921ABA8F498ADED0AIA2PR16MB6480namp_--

--===============7110231780431539311==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html

--===============7110231780431539311==--