Help With curl error 60 and the known _hosts file

Michael Newman via curl-users <[email protected]> Thu, 19 Mar 2026 04:24:04 +0700
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
--===============2199994337634605749==
Content-Type: multipart/signed;
	boundary="Apple-Mail=_3D841233-1407-4D9D-BB27-D46D9DED97CD";
	protocol="application/pkcs7-signature";
	micalg=sha-256
Content-Transfer-Encoding: quoted-printable


--Apple-Mail=_3D841233-1407-4D9D-BB27-D46D9DED97CD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Please understand that I am a naive user who understands very little of =
how this all works.

I have four Raspberry Pies in two different locations each of which uses =
curl to upload a web cam image to a web host once every two minutes. =
This has been working well for many years.

Suddenly at about 3:08 PM today (Thailand time) all of the uploads began =
failing as follows:

Wed Mar 18 15:08:21 +07 2026 Upload Ended 7 - raspsky
curl: (7) Failed to connect to mydomain.com port 22: Connection refused

At about 3:34 that changed to:

Wed Mar 18 15:34:19 +07 2026 Upload Ended 60 - raspsky
curl: (60) SSL peer certificate or SSH remote key was not OK

Assuming that it was the SSH remote key that was the problem I tried =
logging in to the host via SSH. Sure enough, I was told that the host =
key did not match the known_hosts file. So, I permitted the =E2=80=9Cnew=E2=
=80=9D host key to be added to the known_hosts file after which I was =
able to log in via SSH which I can still do.

Sadly, curl still fails even though the new and known-correct host key =
is in the known_hosts file.

So, what do I need to do to get curl to find the new host key in the =
updated known_hosts file?

Or, do I have this completely wrong and need to do something completely =
different?

Thanks in advance,

Mike Newman
Korat, Thailand



--Apple-Mail=_3D841233-1407-4D9D-BB27-D46D9DED97CD
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCAzAw
ggMsMIICFKADAgECAgpnUv530PgvBlmJMA0GCSqGSIb3DQEBCwUAMEQxFDASBgNVBAMTC01pa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HQYJKoZIhvcNAQkBFhBtZ25ld21hbkBtYWMuY29tMQswCQYDVQQGEwJUSAIKZ1L+d9D4LwZZiTAN
BglghkgBZQMEAgEFAKBpMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8X
DTI2MDMxODIxMjQwNFowLwYJKoZIhvcNAQkEMSIEIFxdHIWtmVgz931GccKNhbJlhLVcXcX9JNgO
vqXIvDKQMA0GCSqGSIb3DQEBCwUABIIBAJytZy+VzN9z1huDrMGNUjmLoyyPO5OU120E/7+qIxOs
TqDm6CJ+qfmb5U2LugWhOQfZAGIqTM08vbVXJtQsa0b5OjLDwfYe0+W+tjEVivJcYxIgGownqTCi
h5DPlfYrcVuk/lKWK+e2nsK83iZyh6hlW7VKIdUz2m+w4oBqg+bdmgj8sp0R5Az+6QOxsQD0YW/3
Y6Ky9oXp73G50Rn+MY7zbAN5QghjrrAj9qDNbR41yTKYlabzDEea0TOUw3pS0lXH2EbXORaO1Ywy
+UUc5DICdJHsSlYpY5OeFojwHI+9vdXEMeijPSjvu3HZRbikGJO3u/DkIJer5SnvFYURuSwAAAAA
AAA=
--Apple-Mail=_3D841233-1407-4D9D-BB27-D46D9DED97CD--

--===============2199994337634605749==
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

--===============2199994337634605749==--