Re: Status of SSH_KNOWNHOSTS in pycurl
Date: Tue, 18 Feb 2020 13:26:36 +0100 (CET)
On Tue, 18 Feb 2020, Mathieu Dubois via curl-and-python wrote:
> I have read in some pycurl files (tests/ssh_key_cb_test.py) that
> SSH_KNOWNHOSTS is not supported with the libssh backend. However, no
> exception is raised. Is this the cause of the problem ?
That "not supported" part is news to me. The code certainly looks like it
tries to support it...
> I have noticed that if connect to the server with sftp and add the key in
> ~/.ssh/known_hosts, curl (not pycurl) can connect without problem. pycurl
> can too if I don't set SSH_KNOWNHOSTS (otherwise it doesn't work).
>
> Note that pycurl uses ssh-rsa keys while ssh uses ecdsa-sha2-nistp256 keys.
>
> Can somebody explain that ?
It looks like a bug to me. Exactly in which component the bug lies is harder
to say, but libssh or libcurl seem like the most plausible ones to blame...
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ _______________________________________________ https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-pythonReceived on 2020-02-18