Re: curl/libssh2 ssh-rsa issue

Petr Pisar via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE4/QvzhVoMKgDWObpT9GuwzZa978FAmSHfXgACgkQT9GuwzZa
97+D6A//TS2yLbjW7ZSv3UT5qD4RKyy3qZTt8LpTQ4eDPEmq+yVxXOvR4ew2hMtS
A83F2TFet6JlSTZdVVuGVQTUe3PCyQGDWNVwn9gUKwvlvzk1qTDcUmcIDUoqc5TW
kRqkNypoKBvdjdsTpY8ldoTvuhevkeBmHsGxwtGJozSQhIHz+NA7f/rG1McM5rQz
Vfx6qING1ZlEajG6J4Uh+07AnwS3iJjphQsi7LWuwv1lRV7XLDP6H/Fo4TIl19Rx
MnJEX0SM0NrLNuTZlf4Hc4+bJVXetpnq2FlpUwbXcobOAAV0aZ4oLUGJ91MbKp6c
veokEeBcNS72/jNVI9oF4ctQ7rDQIb3c2h5LiXVrmMoZU2jXNsS7e0+xq6OzSYGd
4O7VIV4+HBgJK1Dr2/lzQ98hoRwncZ4LbWks7OZ1ot/53jS1cNlY6NkHJ0/vWlMv
XUNSKw0QwchZGHq1zfTDMzP21NQSpMzc95ssa2i2VHwv9xnFeQQtpytAPMI3q29Z
vZlOtHoSBM6T8Cb2RiZ/gfOOlByS+42j4SwNbzMVBB1T9kl5V6jSwPq3g89LsLKr
r/aQGZnDS3MI0z4vJ4/v+o03UIktedSXEUr0wxAmHO7d4qLefmYrerOA+zytw78h
wmos2o1L71OJF6dz1uPWgk2LTCA9IiVuLO+7OCRBaHrbmq22z78=
=U91e
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.