delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/06/02/21:59:21

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51FA13987C3F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1622685559;
bh=sQ37d7SWb6OuKiHtfxS3laYhjLicrpQAJeqtNaUwAwY=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=VAuMGqyliSBqhIceupLHfS4FsZoxSVZem2NY9CU3bJ8qyDplRjmjmkR4Ey46cBsYm
Q2RPSIMGTneAk3q6csGycC9MEU0WIcIPpCnlDr6k294W6uePuTuGBI+iHxQM+gh0az
5hRIfISC+sJ9Ob4l8ORAKIQxj3Wnj2Zpi8rW48Qg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0270D3858039
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=ONsHdVTzIHRSuyny/9F8OVqaQN78UguGcU7cQsaTKt7QHDnOiETakBZr+EYI9K6kFZ7agPAOO3da7rn/i2cp3IF25Zk6bNFlNgKuATA4DhykZ98+t8RMUpKT4NNbXnY5f41WrscmJBDY2z6ZZI7HaJMwYTQ4JY/2AK6B8ILCEex9O+oQF+SRvn/dyQJyQEK2zjjSr5b7w6mIspEi+aC7dz0m5mDlFNC+5uGtTbRNpXog4enRMUCpGLZIMsPz8m7x1QpdLI7AUaJdoRDYuhvFW/zxutEYV54jzadoKBZQi9zMSFQusvM59J25oM3TjW32T1hE1RfdcnH4W/C6ecMg8A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=RZj0SK9tAuiyGbpRu3NT8V8UEgsbvvO0tOXmQvmc87Y=;
b=FBL6NQk+bsElQ0WDwcCOl7oEmKwarCItoM12wVZ1uN/z6cPxGFxhDvishRKDvE4fqg/EnZpIy7wip0sjbOkznC95fU7LL4l1X1PlSNouXuWDs05ZY3KLiI4N8rXh1y3PY0N9nNJIGqlteS7eBey479j1FO6dyH14div64yIKCKTx2HEXeta+QZJnKyfe2h9cyhfK+u5FlzFL4k2noVTzYCkez8SKZALPzjxlOJEvsx6aOeLiCxR2Xd4BY3fhDckV2eUGvWBmRurh4Bi9EXesh31PTnBUFVBG+dBurap7yXMb53A2yS/cHnCxzD0Z9e5pPmhLgEzE2zspyPZBB4JsMA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass
header.d=hpe.com; arc=none
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: curl SFTP transfer from Cygwin on Win10 to Ubuntu 18.04 fails
with Unknown host key type: 1835008
Thread-Topic: curl SFTP transfer from Cygwin on Win10 to Ubuntu 18.04 fails
with Unknown host key type: 1835008
Thread-Index: AddIFl2TPPKYcgaaQouIx+ezQ1pNFQIqTnksAdcAgrA=
Date: Thu, 3 Jun 2021 01:58:43 +0000
Message-ID: <CS1PR8401MB06616041473380BD8EEA5031FE3C9@CS1PR8401MB0661.NAMPRD84.PROD.OUTLOOK.COM>
References: <CS1PR8401MB0661782A5CCF9842B233F87CFE509 AT CS1PR8401MB0661 DOT NAMPRD84 DOT PROD DOT OUTLOOK DOT COM>
<97187a2e-3310-28fc-157f-65e795262382 AT SystematicSw DOT ab DOT ca>
<79db00ca-739d-7171-dd78-1a5340d1be58 AT SystematicSw DOT ab DOT ca>
<4d604b9e-de20-f379-f6cd-902a41d38e43 AT SystematicSw DOT ab DOT ca>
In-Reply-To: <4d604b9e-de20-f379-f6cd-902a41d38e43@SystematicSw.ab.ca>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [96.19.1.209]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3e03e2d5-6adb-4c8e-a44b-08d926331dc6
x-ms-traffictypediagnostic: CS1PR8401MB0854:
x-microsoft-antispam-prvs: <CS1PR8401MB0854AB2A5FB9885B4FC2714FFE3C9 AT CS1PR8401MB0854 DOT NAMPRD84 DOT PROD DOT OUTLOOK DOT COM>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: p8OE1AQBDy4aIc3pPE+T9vg2UJoaPRiW5kTjzzpKzZKeZK9Rpy8Muwyhv4GgVwzwHrUfLjTsEkBQQQtrXvYTZv2D0af0A4NC2P2JA4gdtIYGrZwtc0iG4TJhgkRUqKivLNiAdhXcGiWk2eU9uv6s1BvkpVqyYjw8L4O5b3zqoSiRrBWPoT+gC1/ttLemRWhkZVwVr9WBdkB50Aukb6lc/u1lyGRauabexNNf2PvA0/MrdSTASgy/kxxNMK1GXh5dT+fz1JxvZ3fqW8r9tD1aXsHuA22Xl61eY+u5dUfkbFEw/FJmcpiRsCLosNGlHR80g8bZXxyxQz5C1wshiBQ5pmfsZOgPEjXrP63QDWZsDOpX7E1L/yTeDJA7k+dpLntRGnd3KVWAbJIp7g6AV0PKU03fP0/g24nDf091LkuGYC1p2mMkZ/qfEfs1RkCsJjxIopwjj/nx2S49awG7MF7lSoVAVvBi2LTT0CM3A7ykB1qhX4eBfRHU116JMOqzNDri8msn5R6kzTgbvuapX3OvmUVzYYZgKA4HzpOl6hXDm5R1bse0QdaFLGNm/OgnQplhVssc8MJC2CKEiDIvNDUFU86fMrIkjW6qTNk7KyMrTh3LGPmkCdQ76aGScE/Z9qfN46WV/B3m/u/JMRdCmVC0dnEGbhWm/Nd0mgL8PshWRGWXvF+aUM6J6TED5eR1Ng6de/tvzGBnkTmGRwE1jgvoMDSWAd+c0PJWhlifrYohLaxnI2nMjq02Bw86XU/NOBWudT3L8TZkGzVKKoEQPZ2m0A==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:CS1PR8401MB0661.NAMPRD84.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
SFS:(366004)(39860400002)(136003)(396003)(346002)(376002)(26005)(6916009)(86362001)(9686003)(7696005)(966005)(53546011)(6506007)(2906002)(55016002)(316002)(38100700002)(8676002)(33656002)(52536014)(8936002)(66946007)(83380400001)(66446008)(66556008)(66476007)(64756008)(122000001)(478600001)(5660300002)(76116006)(186003)(71200400001);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: =?utf-8?B?WWRYTzNNVE5VakhsUXQ1aUhsb28yTTlCQi9mMk15Q09ET0hEaGVnU3pWQ2pZ?=
=?utf-8?B?VFR5L3BUL0NQL2gxKzJVT2Z1Mm9PWTVhdU5mQVVsWE1Gdkkxb2IzOU9YcU5U?=
=?utf-8?B?WlY0aThpam5jNmVCWlV0MTE3VHVxNEl2NUptN1dqUllLNWtzNWFUMit3R3Vn?=
=?utf-8?B?b1huQ2lDYTVYUGtkRCtPM1pIZGM0ZEtEMGVhOEFTdGxEQWxtSnVKeUhEWlRO?=
=?utf-8?B?cUdTWU90MlpJVGo4STUwQlozcGU1MkFNRWNVNFd5dll2aGhoL3RtQTNLMTVX?=
=?utf-8?B?ZnF0ajl6a0IxVXkxcmJZUDdveDNaelZZWWsyV01EcEtETVRFc1k1NUN0c2lM?=
=?utf-8?B?bWREV05BVkJrMFljcWxTVThUTGdGSzlyVk1SczhHVGNidWhNaHAzK1J0VDlP?=
=?utf-8?B?SVFVZXBoajBDbkZldWZoUEFLT3VTL0pKYkdXYkJZQWJRQ24wbm8yYkt0R0hl?=
=?utf-8?B?SEFNK2NaQlVNZHpwYkxNYXNzTWpObWNDRVpRRkxOeGlITmMxL0I5VFIvZnpS?=
=?utf-8?B?N0Jqckx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labXZPQ05TNzhSNmJFL2FJWDBk?=
=?utf-8?B?MjFCZlFEbkNPT0lZVHA0Ni9IQTIrQzJPVFJiWERaaEVySUNwUDgwcmRsVU1k?=
=?utf-8?B?dVJOMnRqcm9Ca3RvSk5DWENHaGREYzZKZFBCemNRSVl1d254SFpXeGdpOFFv?=
=?utf-8?B?VFBneEFwTncyYnJzSFNvM29acTFHSWJjaVJxNFRrUzN2Y01NYkIxSGJHSWFv?=
=?utf-8?B?RGdRQ1FUVUJDbDJSWENoNXlKbE9zeS93cEpQVG1kUUhlYmpROVc5M3d0VnE5?=
=?utf-8?B?VU9VT1hkTXJHTStTV1F5ODlndW14TFNiYm5HRXNES2RhNG5oTEFlaDF6eHk1?=
=?utf-8?Q?9LWLbGH4Pgu+ly/Ga4=3D?=
x-ms-exchange-transport-forked: True
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB0661.NAMPRD84.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 3e03e2d5-6adb-4c8e-a44b-08d926331dc6
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2021 01:58:43.2641 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: BiWKcnsevQSY5MlfD5eyLHGoM3lRaA5vKSkREa4QyfJ/hVrSn+2sFfhOe0WRSxvVndRW5t2T1Q1BDv5RNcs8QQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0854
X-OriginatorOrg: hpe.com
X-Proofpoint-GUID: PJw_8_1eCuPGiyiodWKhG_W0WMf-603C
X-Proofpoint-ORIG-GUID: PJw_8_1eCuPGiyiodWKhG_W0WMf-603C
X-Proofpoint-UnRewURL: 1 URL was un-rewritten
MIME-Version: 1.0
X-HPE-SCL: -1
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761
definitions=2021-06-02_11:2021-06-02,
2021-06-02 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
lowpriorityscore=0
spamscore=0 clxscore=1015 adultscore=0 priorityscore=1501 mlxscore=0
bulkscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 impostorscore=0
malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1
engine=8.12.0-2104190000 definitions=main-2106030011
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT,
RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Voris, Ben via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Voris, Ben" <ben DOT voris AT hpe DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1531xLQc022379


-----Original Message-----
From: Brian Inglis [mailto:Brian DOT Inglis AT SystematicSw DOT ab DOT ca] 
Sent: 24 May 2021 11:09
To: cygwin AT cygwin DOT com
Cc: Voris, Ben <ben DOT voris AT hpe DOT com>
Subject: Re: curl SFTP transfer from Cygwin on Win10 to Ubuntu 18.04 fails with Unknown host key type: 1835008

On 2021-05-17 17:55, Brian Inglis wrote:
> On 2021-05-14 23:47, Brian Inglis wrote:
>> On 2021-05-13 22:40, Voris, Ben via Cygwin wrote:
>>> curl issue https://github.com/curl/curl/issues/7057 was closed with:
>>> "This seems to be purely a libssh2 issue and not a curl one."
>>> Curl reports "libssh2/1.7.0"
>>> On the same system, ssh reports " OpenSSH_8.5p1, OpenSSL 1.1.1f  31 Mar 2020"
>>> The curl code in https://github.com/curl/curl/blob/master/lib/vssh/libssh2.c has a number of defines to control what 
>>> type of host keys it will accept, including LIBSSH2_KNOWNHOST_KEY_ED25519
>>> Was the curl built with this set?
>>> Details are in the curl issue, but here they are again.
>>> Here is the curl failure:
>>> : curl -vvv -s -T t.cpp sftp://bvoris AT nucnuc/tmp/t2.cpp 
>>> * STATE: INIT => CONNECT handle 0x800085338; line 1634 (connection #-5000)
>>> * Added connection 0. The cache now contains 1 members
>>> * STATE: CONNECT => RESOLVING handle 0x800085338; line 1680 (connection #0)
>>> * family0 == v4, family1 == v6
>>> *   Trying 192.168.1.5:22...
>>> * STATE: RESOLVING => CONNECTING handle 0x800085338; line 1762 (connection #0)
>>> * Connected to nucnuc (192.168.1.5) port 22 (#0)
>>> * STATE: CONNECTING => PROTOCONNECT handle 0x800085338; line 1825 (connection #0)
>>> * SFTP 0x8000847c8 state change from SSH_STOP to SSH_INIT
>>> * Found host nucnuc in /home/BVoris/.ssh/known_hosts
>>> * Unknown host key type: 1835008
>>> * SFTP 0x8000847c8 state change from SSH_INIT to SSH_SESSION_FREE
>>> * SFTP 0x8000847c8 state change from SSH_SESSION_FREE to SSH_STOP
>>> * multi_done
>>> * The cache now contains 0 members
>>> * SSH DISCONNECT starts now
>>> * SSH DISCONNECT is done
>>> * Closing connection 0
>>> The curl/libcurl version:
>>> curl 7.76.1 (x86_64-pc-cygwin) libcurl/7.76.1 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.2.0 
>>> libpsl/0.21.0 (+libidn2/2.0.4) libssh2/1.7.0 nghttp2/1.37.0
>>> Release-Date: 2021-04-14
>>> Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs 
>>> smtp smtps telnet tftp
>>> Features: alt-svc AsynchDNS brotli Debug GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink NTLM 
>>> NTLM_WB PSL SPNEGO SSL TLS-SRP TrackMemory UnixSockets zstd
>>> The known_hosts entry from the client:
>>> nucnuc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICmjvQ5jehz5Jwt1PDGJBSgcXVhoMRnbn/E2p3srSK+c
>>> curl is run on CYGWIN_NT-10.0 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
>>> The target system has:
>>> OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
>>
>> Looks like it will need libssh2 1.9.0+.
>> The next version 1.9.1 is nearing release incorporating all the updated support
>> as well as all CVE and other patches.
>>
>> I am working on a couple of build issues, with upstream, and also 32 bit x86 builds.
>>
>> If I can get those resolved, I could adopt libssh2 (also hosted/supported @haxx.se
>> involving some of the same folks), releasing an update when the new libssh2 release
>> is available, and releasing an updated curl release 2 with the updated libssh2.

> New libssh2 1.9+ releases are available with latest ciphers and CVE patches,
> and new curl -2 releases are available built with the new libssh2 releases.
> 
> Please upgrade your Cygwin installation, retest, and let us know if you still
> have any issues, or you can now successfully connect.
> 
> After some more Cygwin et al testing of the latest libssh2 upstream repo
> commits and snapshots, the libssh2 project is eager to release the latest
> libssh2 1.9.1, and newer releases of curl will be made available using
> those updates.

This problem no longer occurs in curl 7.770 (x86_64-pc-cygwin) libssh2/1.9.0, release date 2021-05-26.


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019