curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl/libssh2 ssh-rsa issue

From: Petr Pisar via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 12 Jun 2023 22:18:00 +0200

V Mon, Jun 12, 2023 at 03:53:54PM +0100, João M. S. Silva via curl-users napsal(a):
> I believe there is still some issue with the latest releases of
> curl+libssh2 related to SHA1 vs SHA2.
>
> If I build libssh2 like this:
>
> -DLIBSSH2_NO_RSA_SHA1 -DLIBSSH2_NO_DSA -DLIBSSH2_NO_RC4 -DLIBSSH2_NO_CAST
> -DLIBSSH2_NO_3DES -DLIBSSH2_NO_MD5
>
> curl cannot negotiate keys:
>
> * Set "rsa-sha2-256,rsa-sha2-512,ssh-rsa" as SSH hostkey type

"ssh-rsa" uses SHA1. Try removing it from the SSH hostkey type string.

-- Petr



-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-06-12