Re: Help Understanding curl and tls/ssl certificates

Dan Fandrich via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On Thu, Jun 20, 2024 at 03:50:00PM +0700, Michael Newman via curl-users wrote:
> Ah, there’s just one more thing.
> 
> After I fixed the url scheme on the Pies, I got this error:
> 
>     * Connected to mgnewman.com (192.254.225.101) port 22 (#0)
>     * SSH MD5 fingerprint: 4b17cad500a405c850e118c1deec0f96
>     * SSH host check: 2, key: <none>
> 
> So, I used ssh-keyscan to update my known_hosts file. Now it works. But I still
> have to wonder how it worked before? I guess because curl was using ftp rather
> than sftp.

I was wrong about it using ftp from the logs, but this is another indication
that they may have been doing maintenance on the server. If they replaced a
server or reinstalled one then it would generate for itself a new host key and
you'd see this error.  This matches the error in your original post. But, if
this only happened after changing host names in the URL, then it's all to be
expected since you're connecting to a new host.

There is another explanation that's less likely, but these symptoms would also
also be possible if there's a man-in-the-middle ssh server that's now
intercepting your connections. That's the whole reason to have this server
fingerprint functionality in ssh after all, to detect this kind of thing.

Dan
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
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.