X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8150389364C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1620967238; bh=sLSV1y9khZIr39qHvJLYdUj4c6mILl+OmNRnv8stxoA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JCdzd9uu1aGxbiwGGaIxD94Rr61semEcfUOYzChuMAmdcdjY502ixJ5t1ULHfOnVx afYLehng+FXMi7WzZH3SmKeh5PWkaEVrRxLWlH6mcgLjuEsSw4A0N4uuUeqjRO477j 3anoxPB7iSLVWE5k59HEXxF5+di2K7hbuxviiU5E= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F35B638930EC ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lpVg0/EyJZh2xigdcmv6JKHeQU4EtOrnnn+bdyANPRrq087OntB85LJzniq6u5d23IBbngF85lLhtWs1fRTHtt4g8A6FoCpCTwG+9/2FqywKgdr7twQwGUTECTP5RrO0Kd60zho/UTcXmj+TeDMXVi2rsHXQKAfVV0N1421mp6cQwI9htBd/fuH6UJPMzlxwm/zJilEca6bBiVg+y0Pmil9cdYvJOXQ+c1dDUmX2iroE8LZGa2pQUtpRCFi5gjlFO36JAWbXNuTehIgAcRyyJINpG4K9GaiNuFHyySCvqYa6V/ZYDd99cFa5+TqxO03X0HP+wPfS9ky5VhMnooEZDA== 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=dN6f1Y3vTbVZpfch+56dWuAWoxfPRocrvbH0aj2U/Pc=; b=Gqc3ON/HyM2EBPjN7CWKB/Om8PJgoDM6Clw9QguyR9VEme2rO7btWBhJR9DycA9DOSCl4QX8MQ0ms7x8jOFXYs5mANUJplU08za88D+1DvD9X86Nz9AadpMIjGSrCXD4I68oXhC1ZuZTOB8vrwQUBa+fuOZ0AX1/QI5H//nf7WmplOKKuanZVqojn4dvfv3XbATqyyChWLGirMHHVnMa+AkKzR3Ftfv5m0PMyqiWHb4uQuDy6NgRESuEvNNJwujTqoqKyp3cmbPdn+cnU5zRAuxAwFsYHTLThkcabHHlnOJL8GNxetO/rAV9EX5+z36Tq+jjVfHkffXRChPf9cnX4g== 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" Subject: 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+ezQ1pNFQ== Date: Fri, 14 May 2021 04:40:31 +0000 Message-ID: Accept-Language: en-US Content-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: 36b78b92-f130-4e0c-80d1-08d916926850 x-ms-traffictypediagnostic: CS1PR8401MB0341: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zUpoOakA6Ojq1ptYGd/nhEGp42v6AZEvx9cOVKc8DTxoJkKTEAm3SfxhoktLpLDIz8dY3R8B73kYJ5DFY8B4NrL98XVsX5bT6bicmJh9KdM3OerxBmjIuscCpGE7uD/Zl9FZUXKgXLU43LKC4C1AwSRPmOiRsBM2k9gI/QBy473SbCrG1v47d7YzbB4JgjY9PfOCI4sKX+QRMgAg6GGrLV0LvGukrp2MSLXocN3zLW5a26WleQrqG2zrX8rJrdGNVdMyrN8HBf8fOlbzxifhmacLcZhEUu+jkartjyXnthpFQi7bZ2/35GC6Kt280R9CAWMyMJ7XtIv5nEjHnMk+Hbz92Qepui10tciulK4z3I5LmECzRI7JChyVtyFT605tSjndoWbKJcGX1yznynScvzzjvCeMiTowmFdQdUwkt7QU/FqX+9WQU78dTyhl6ueZlX5nfjWMhEOHhj8NqeCa9ahsvfKS46/dEUnIId7+tYRSjcorHVRzDFpvDBQfDP515WcunCMzRPzHcBfvxGvEBD9N3TzqV2m/ZI16b0Mt0u1VpS9MW61nX1nDvMRHPRDGvP+zFF6YP2Hr1UynDxwM9aTlwNSGnRx9N8SFertrBU5HBCv8n8EKr9N9ubaBRmgHBUU+GNj6AfJJSPrjDUSOids8wbRFsG4YQ7oN7MWYCAigWkFKZbL5jUx2l2PeFjZrEvzqe8+mOTotD1R/e59ipWUcIrfXu720Kt6VgGgZV1Y= 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:(136003)(376002)(366004)(39860400002)(396003)(346002)(8936002)(86362001)(55016002)(8676002)(6506007)(7696005)(9686003)(33656002)(83380400001)(186003)(2906002)(966005)(6916009)(26005)(66556008)(66446008)(64756008)(66946007)(66476007)(71200400001)(76116006)(52536014)(316002)(122000001)(478600001)(38100700002)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?qvnIfkqS9ZUrB3MPIOTYrZrSy62wm7pQNDV7+2c/v5Y5kYQ7FVQwvN6ZsdX/?= =?us-ascii?Q?zxrC4NesTk8cbbd+Z1npSry8+p+2sNQF6fDg8umUH8PvPfkysx5oK68VRnU+?= =?us-ascii?Q?ug/rBzCDuNnY/zlsK4/Ayhk1bqOgMayUJKd9w4DwEaCZ9NV6ru44uzpTdgHN?= =?us-ascii?Q?0q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aEVYMm?= =?us-ascii?Q?zI42wu9GkSZsjmjPLohsRPkGqJd2VrIfELuHhRUbNrF9CzGlTGt5L/5tTdSn?= =?us-ascii?Q?YUQbE5/DP/HywL5CKcCH+ZZH5eHXyXj2xg/gYrYi04SbLA64jFnx6VgngXeP?= =?us-ascii?Q?RhoP+u2DDaGOGTsyNGR+/Lm0WmZ21+DMSZpRLj9OrIAs2NEvWPZQr4oNA5FD?= =?us-ascii?Q?JuwqpKtlaVPveaDTtSlKIa5qlHFLeN+y5JNKOumKDmdrzU/Ekqn4hoXJ632Q?= =?us-ascii?Q?ZYA=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: 36b78b92-f130-4e0c-80d1-08d916926850 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2021 04:40:31.9539 (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: 51eMBTr5ezi1Oi6yeiuKLX2ZWC91v/6K5kQqhIeQTxdluLD+BkG0PkOgAYtUmdDdkZIjj1xLpBT24D2I3MM9kQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0341 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: 5A7qgsWz1D2Fr1RjGZOj-V4pZS_Sm4Qb X-Proofpoint-ORIG-GUID: 5A7qgsWz1D2Fr1RjGZOj-V4pZS_Sm4Qb X-Proofpoint-UnRewURL: 0 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-05-14_01:2021-05-12, 2021-05-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 impostorscore=0 clxscore=1011 suspectscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105140031 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: "Voris, Ben via Cygwin" Reply-To: "Voris, Ben" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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 -- 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