From libssh2-devel-bounces@cool.haxx.se Mon Feb 1 19:41:48 2021 Return-Path: Received: from giant.haxx.se (mail [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 111If6IZ004663; Mon, 1 Feb 2021 19:41:34 +0100 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2086.outbound.protection.outlook.com [40.92.19.86]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 111If3ZG004648 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 1 Feb 2021 19:41:04 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ULA6qgjwAWw0Wvkqp2x9+3Na/Crm65CxRMoJ+7HtSBH7aKLww9FzGB3ElYEyomDSxC3UjxCLsan8EU3Dxf/EBKxM5yw/lLKU69ovpdv0fEXvFTU0IkKs5N5ALOdlfsmhdjecZBMSOJEgTrbkVP0zAYcxouCK1qQ6jp/Ow5vrOu/Sx4xmZx7Bp2vgBbWUYsE2yzYGTyTeRt/7SJmQ46AqJRgS6VEcRCN3u7jnfS7Vxt25prKXc/ZH4G4E8sEloUZ/eMyVWz8NYushroCGqCuSsbwB0Fxcv+GhEO6HRhh9tEC9QylRpL1mz7DlwmqKy2GK+ThkZXK+EW5LgwJInYO+tw== 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=FbnN+D7oMY6XEMr+VBZkYGgwCuwfRI3GGW9qZPBwoCE=; b=FRQmzUnwyDzgXxwLTLBdhzuA6WmLXbDzWm5kkKnUBHDZpc2Ejj/V3Y4d1tvp39sEUl10hyMAY1xrcDP8pD5qnqRoutSr880GG2qP0enkAltgXomSqzahwrKv2UnQaQvXWDZbC2H+SFrP92OxNAnCo4eyh6YYrKJELoPRUw7boTBHPX0dXbWDOiCQMLCLmpEO5qmuVp8VCTCs+kuBcfmp15P0ociN2IWLXi7oy4q+AyW1GgiskwVTLwpEVrd0r3HgfN47OjPmPJZQvHXj89zFn/hnUHg8o7N6ZJBJcbRSsqRcO7ArPaWM3zrhSXpfl+CM8GFliack20uZe8z68REYfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FbnN+D7oMY6XEMr+VBZkYGgwCuwfRI3GGW9qZPBwoCE=; b=btDUp8b+pb/K/u28fFhjeSEmqHFB6Nr6evtO8FgXeok2TUuLHjjtxWJklTDvbCnaxfFpXxxZJrHldM4QUQpaiNbWDJlGLLT7dmKNQSUZtU00YItd35MzgAMdgIFgaLyKRi9wCvIYIchSwk0Pyr1okQ6A4U7INGE4ZCGG7/y8GMZHj8vPCDBsM25AjAj4K+991Rzxq5Vy07WhOd7jE6jVO4WMzuVI5H4A4GNgAJPy4A6PVIXIYxxD3yW3USwN13612zetfWjilN2E2xnuN0rOrSZU63HpQETlwLRikSerayg0IDh0sGPn+9phBG1zI3cJR6P+roCuV1jzG2wMEbh+IA== Received: from BN8NAM11FT007.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::49) by BN8NAM11HT006.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::435) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12; Mon, 1 Feb 2021 18:40:58 +0000 Received: from MN2PR08MB6255.namprd08.prod.outlook.com (2a01:111:e400:fc4b::46) by BN8NAM11FT007.mail.protection.outlook.com (2a01:111:e400:fc4b::365) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12 via Frontend Transport; Mon, 1 Feb 2021 18:40:58 +0000 Received: from MN2PR08MB6255.namprd08.prod.outlook.com ([fe80::1d3e:e973:3e5f:42cc]) by MN2PR08MB6255.namprd08.prod.outlook.com ([fe80::1d3e:e973:3e5f:42cc%5]) with mapi id 15.20.3805.026; Mon, 1 Feb 2021 18:40:58 +0000 From: Bob K To: "libssh2-devel@cool.haxx.se" Subject: Can HTTP proxy support be added for SFTP transfers? Thread-Topic: Can HTTP proxy support be added for SFTP transfers? Thread-Index: Adb4yNl1aBp74VDeRCio3xdmZJiZ8Q== Date: Mon, 1 Feb 2021 18:40:57 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:CF2BE474F46B9AD65495FDC96E472CF66F74ECB113F6D274C1E0492CB9C64597; UpperCasedChecksum:1C00FDADFF22A4AF1CEE89056F3C5128186159AA80B1A969A3C2EAA6CBB6EE4C; SizeAsReceived:6668; Count:41 x-tmn: [39DJ4SV4j6COWpY5NDMWBB1nlUE3M7xr] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 708d0e17-6f2b-4278-532f-08d8c6e0ea69 x-ms-traffictypediagnostic: BN8NAM11HT006: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CzVFrsEd03mzfnxtbT3Akik2BKPJFoy+jx/MuXZcCMbJPQ351gOTMhE/CHqI7LpgD6WRXjnYteOKqHlHqRR47T/TdWGFeYaNyau7gSt2rZb+fAH9P3dWQYoHmQFSqIbH3qzsIDfOP8qt1VlQV+NCcr6OZqNwYNjGTZQYRfeEl0IrNXOTVLPPLYEUPJauxntXoLZ8/r5/d6P64HQiRlU9UvytP1av4ySmQ8KU9eG5FgfoKlyfvMtp06MTpl50c/JSL0wGCwNXq9EwAnvx9DeD3CUlDsx6hriptqDPbWbLoU2Rag364Rp5MmZjAognNx71cph+jmbTm0Qk9ykH9TMJWc/oRFI51VReXKuCzXJsit4g5FWVNYtg00O+QVKOJ1oL x-ms-exchange-antispam-messagedata: qDHFPflVC8qSQ/r+FX8/jgo0Fd17UgnyyzfUldLz+uecpozIUvmdZAlPx6wSYt8nxzpyZtuGHv/prdE6jhEardvR7msvJzve80R6SAS/cQDaEBZuURUTtbjUbU7ijPCI2vYgIPSHjWbyqAomYdiQJg== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 708d0e17-6f2b-4278-532f-08d8c6e0ea69 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2021 18:40:57.9664 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM11HT006 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.22 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: multipart/mixed; boundary="===============0301453276==" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" --===============0301453276== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN2PR08MB6255DBB7C2CF60C36217B5F7F3B69MN2PR08MB6255namp_" --_000_MN2PR08MB6255DBB7C2CF60C36217B5F7F3B69MN2PR08MB6255namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I currently use libssh2 in a Windows application to handle SFTP transfers. = Works great. I was wondering if proxy support could be added. Unfortunately this is outs= ide my knowledge. Is this possible? Something libssh2 handles or I'd need s= ome other lib? Thanks for any pointers. By the way, is there any way to search the libssh2 mailing list archive? Thanks, Bob --_000_MN2PR08MB6255DBB7C2CF60C36217B5F7F3B69MN2PR08MB6255namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I currently use libssh2 in a Windows application to = handle SFTP transfers. Works great.

 

I was wondering if proxy support could be added. Unf= ortunately this is outside my knowledge. Is this possible? Something libssh= 2 handles or I’d need some other lib?

 

Thanks for any pointers.

 

By the way, is there any way to search the libssh2 m= ailing list archive?

 

Thanks,

Bob

--_000_MN2PR08MB6255DBB7C2CF60C36217B5F7F3B69MN2PR08MB6255namp_-- --===============0301453276== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No Mi1kZXZlbAo= --===============0301453276==-- From libssh2-devel-bounces@cool.haxx.se Mon Feb 1 22:30:48 2021 Return-Path: Received: from giant.haxx.se (mail [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 111LUORO032559; Mon, 1 Feb 2021 22:30:41 +0100 Received: from silly.haxx.se (silly.haxx.se [IPv6:2a02:750:7:3305:0:0:0:2aa]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 111LUNPL032555 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 1 Feb 2021 22:30:23 +0100 Received: by silly.haxx.se (Postfix, from userid 1001) id 71AE95E45B; Mon, 1 Feb 2021 22:30:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by silly.haxx.se (Postfix) with ESMTP id 6EF237D593 for ; Mon, 1 Feb 2021 22:30:25 +0100 (CET) Date: Mon, 1 Feb 2021 22:30:25 +0100 (CET) From: Daniel Stenberg X-X-Sender: dast@silly To: libssh2 development Subject: Re: Can HTTP proxy support be added for SFTP transfers? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) X-fromdanielhimself: yes MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.22 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 111LUORO032559 On Mon, 1 Feb 2021, Bob K wrote: > I was wondering if proxy support could be added. Unfortunately this is > outside my knowledge. Is this possible? Something libssh2 handles or I'd > need some other lib? libssh2 doesn't handle that, but it is left for the application to do by itself. HTTP and auth and all that comes with it is quite a lot of code that's not a job for libssh2. Incidently, libcurl speaks SFTP over HTTP proxies with the help of libssh2... -- / daniel.haxx.se _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed Feb 3 23:12:24 2021 Return-Path: Received: from giant.haxx.se (mail [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 113MBkKG025519; Wed, 3 Feb 2021 23:12:13 +0100 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12olkn2024.outbound.protection.outlook.com [40.92.23.24]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 113MBh7p025510 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 3 Feb 2021 23:11:44 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UR1BNtVZ02hSQEchbRbLSdQ+AnwLDImQ+3J6HkYvSnV2O/2YE2AOxRF1ndTWBAmc2aRBdNF81MFi7zE730jBJm9DVBs9mzwX1FQfed56sjwhBXWsdFUYX9+pxhO8MDC74Fsn8MRdSN+Fc1g3dOvnmEDCbmo9JZXxwhFhEu+jVCW15+7Qf9FYW3Fs+C5+oo7LBKKC5va5uoGDiouqlY8ZDAy6iCpwysWtrGTdOfwV9RW4tgqgAwVzdTHjdcoyhx56thbdhh2Fg1MQHjXPK6Tf+Zj0381wu5lbTxR1v35tWjSlSeIylHq1orU94B1fm91farnEsO3KEy323LnRQZDEHw== 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=2Hoy3J2EWncXqoD5XJYNlDms7SnfJTj0cNoaV5xBy1I=; b=WfXmBSrh/oGOcReUX+xQ7vUImLnr28lBCk9c1Jlfkk32MY2Q68NUEo724ozeII38ayj8soteiCnFdrCBatcTDY5FTwlDH4B0Xs7gji2T5vhgxGBdag+dOwsslQlTBlWEiv9MJxidsDmm+kMEGhO5MTZb34cD9X3RbCD5P2CxJWWzE4U7BJViqtV4+Rk6e4fQ66Ws2xMTu6G1KXrVEKW79IT/1Xsh8Z55gbs2jJM/ZcISPPwqEbyd9QONRenhoVU7VsCQ+0fdr6Emvvr8FOTfMoVkxiNB470chFyxjRURxHMIrNq+5BwU4l7+DaQS9OvkUbruh3Ckn0N2oExdsvYO4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Hoy3J2EWncXqoD5XJYNlDms7SnfJTj0cNoaV5xBy1I=; b=hsU7QAOtBfWhdDQetFrrjfN7zia0WCwOnnV+83l5vstIXNX9zFzq5VEKy2tal7B2V4cwvjZ+EAJYMnY0sTXpiz+flT9EzZz5Huy3Ww8e7yarI/WXAS3dMosR752pm8KZiJo8n5bbz6ce6UZFvoe+8kPLEAwZdVbcH/XwSyy9f/XKLX4TpDcltW9++iyXEaV2ik3ZeF8F8j4eqH7mcntCEyYK0c2+YSS9myhEnYewUkFUonH+koTKFJ6WasV/MNmNPI6I2j+1/CDCc8SE9m91T+2bExxE22ILxxIfHaJ8erj8BYkiqshcnIub983T6nXPS9KZ75caqBodB6Fii7ZF2A== Received: from MW2NAM12FT036.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::40) by MW2NAM12HT210.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.11; Wed, 3 Feb 2021 22:11:33 +0000 Received: from MN2PR08MB6255.namprd08.prod.outlook.com (2a01:111:e400:fc65::50) by MW2NAM12FT036.mail.protection.outlook.com (2a01:111:e400:fc65::174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.6 via Frontend Transport; Wed, 3 Feb 2021 22:11:33 +0000 Received: from MN2PR08MB6255.namprd08.prod.outlook.com ([fe80::1d3e:e973:3e5f:42cc]) by MN2PR08MB6255.namprd08.prod.outlook.com ([fe80::1d3e:e973:3e5f:42cc%5]) with mapi id 15.20.3825.018; Wed, 3 Feb 2021 22:11:33 +0000 From: Bob K To: libssh2 development Subject: RE: Can HTTP proxy support be added for SFTP transfers? Thread-Topic: Can HTTP proxy support be added for SFTP transfers? Thread-Index: Adb4yNl1aBp74VDeRCio3xdmZJiZ8QAGJp2AAB/1R0A= Date: Wed, 3 Feb 2021 22:11:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:1A989906C350F631E4261B46299955D74D82A70A923A48D37122F9CFCBB32333; UpperCasedChecksum:C5AA030EEF65DC579B5AB63093ABB5982E66770F14EE42033DEBFE579BB0FA1C; SizeAsReceived:6869; Count:43 x-tmn: [7yLaGb7Tk4sgA3EzNMHvAWjnM6yjMDmC] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 5c66cf15-d7ec-4710-dedc-08d8c890aa82 x-ms-traffictypediagnostic: MW2NAM12HT210: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +9kgUc8MtD2IlbZCxAw0K53I9VHcHMlRH8EYvi2z7jk4V6hRFECmr5/byipstPU4CPuNpa0vIpIWja9OQUWxnmYfkRLEaDEj8yQ+ktXSHwe+Woj88wOQ0ZA8bMuCP+vMqrJJaA2f6oDBvOlG73EuJDAK661tkS0B3hxsKzEAGi8iAxnTH8JFhv4FVXYfjLWPoiJR9y71MrT+r4B4o4XjyHSeyjSotzsPqOpzZY9+mvdsW7XEnYhBO4PCCDwAMXba38obFX59lnOFIHQA5VGZEC3+STIo50JM+dQNS6P36SgNMTELWMRug/2B9YTJRYJD7Vz5+ltyUZSC3PgKkFzoQ3qCPdclaRcN/XwR2uJin2+U10VbxTt/mAFtC3COhMwBpJR6JjhsG3PcArTpJm7g7nXmRSGqiwZAFGlaZuwCfIQ= x-ms-exchange-antispam-messagedata: iATLC48SIiEYQhSrQG1YNw6szQ7yfUISew+Sewp2jw/sdSSn7trvwqc8S1hJhkwtmTMEalFo6g2fgsynLDRqtKfKupHVEUb5Ttu8UM4qgoyk4Y21zWRGrzNzFWmeJsrvTrUE2HlQGHfnCb02WaCu7g== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: MW2NAM12FT036.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 5c66cf15-d7ec-4710-dedc-08d8c890aa82 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2021 22:11:33.3847 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM12HT210 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 113MBh7p025510 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.22 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 113MBkKG025519 Thanks. -----Original Message----- From: libssh2-devel On Behalf Of Daniel Stenberg Sent: Monday, February 01, 2021 4:30 PM To: libssh2 development Subject: Re: Can HTTP proxy support be added for SFTP transfers? On Mon, 1 Feb 2021, Bob K wrote: > I was wondering if proxy support could be added. Unfortunately this is > outside my knowledge. Is this possible? Something libssh2 handles or > I'd need some other lib? libssh2 doesn't handle that, but it is left for the application to do by itself. HTTP and auth and all that comes with it is quite a lot of code that's not a job for libssh2. Incidently, libcurl speaks SFTP over HTTP proxies with the help of libssh2... -- / daniel.haxx.se _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Sun Feb 7 02:42:17 2021 Return-Path: Received: from giant.haxx.se (mail [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 1171fdCJ004250; Sun, 7 Feb 2021 02:42:04 +0100 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20:0:0:0:32b]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 1171fZMH004237 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 7 Feb 2021 02:41:36 +0100 Received: by mail-ot1-x32b.google.com with SMTP id 100so4170836otg.3 for ; Sat, 06 Feb 2021 17:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tK9jBIGmKaV5oOqwABCK5THGL9tZKUY2dT4pALBNZe0=; b=sZhHg5AR4AeqR3zzUSSzZK0aQ62CJsZmaiM/HRnkhBSlGrhkgPwQY+fb8fVxWX2X2f WlQ+FgzMFMsaHcA0rCIw2WB10o+pYnu5sdk6Rxl/GOZuO/m25KliugpzDedQo3RPlyQO TBhD2oo9XY7I4C9c/46iKFWEA+toHJTvzIlwM6St4elxkqE7i1qiMrdsCYTRTzoRaLby QOYezYmIXP3qTfHgUCQiaXOB+iTftO5Q09o/da9BjpMEaposbQ3wvP9DTwh8akZctXek Ofm4m5tuTDFbCd19M1NzbqNg5e2xAU+HV1Ww+33jhKpguLr8RMEPGtYzc52k+BNKpE5x otZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tK9jBIGmKaV5oOqwABCK5THGL9tZKUY2dT4pALBNZe0=; b=qeqMCecoD8Ozqw8Ro5YZH7Xm4BGYdqZeqMwpHj8De5tne5/Lr8Ae0k+tX9QEZRtSkT /Qu5t/q1K6/uVuleMdqbgVwV91Rv2J1d3q0JzhZyTBXdj1nI2w4IV0u32PjMVNHNfRwV M9YIIPp1eY1GlC63JWn9tuFG4oLp6yvH9HEyUxwcwbjaiFAsonv1I26/7H9gA6Mr2P8o JzuLflWwgPMNgO4cjaSEzt2oDGjxwM3gJBDWZqR6N8MD7sMz/ZrdgQ4TtzWOGH8eo9qn /p3fcmUL74IWe+8udX5OTiVPp/BipbsbWGnEjvzdUtwIwmtmnnedEhFPsAWFapwYBqt2 mhsQ== X-Gm-Message-State: AOAM533UzNc3BUbZXzhC8v/CLwwAcNfgddHTZaj2aVwdctUQ4Mfeqk3a rXeVZSf1hfGY4YW1vqa3qD7YO8PGjXha4PcZOc0bWLISJkg= X-Google-Smtp-Source: ABdhPJxGpTYxm7tO6SAbds/tRCL+gkthOhFynHGcxefPfsimwIp8deh+E7brC9l3fOOBmW+Ve3w+vxsSJWR1y/pd8XI= X-Received: by 2002:a9d:2030:: with SMTP id n45mr8233235ota.278.1612662091347; Sat, 06 Feb 2021 17:41:31 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?5a2Z5LiW6b6ZIHN1bnNoaWxvbmc=?= Date: Sun, 7 Feb 2021 09:41:20 +0800 Message-ID: Subject: Is it possible to execute several different commands in a single channel without opening another session again? To: libssh2-devel@cool.haxx.se X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.22 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 1171fdCJ004250 Hi,list I want to open one session and one channel and then execute severeal different commands. It is okay it is executed correctly but when i want to execute another command it is not execute, I should return the beginning of process first initialize session and getting channel again. It is not good solution for every command. Is it possible to do that once initialize session than use it again and again for every command ? _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri Feb 12 09:03:10 2021 Return-Path: Received: from giant.haxx.se (mail [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 11C82Wq1016067; Fri, 12 Feb 2021 09:02:59 +0100 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20:0:0:0:332]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 11C82UFI016058 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 12 Feb 2021 09:02:30 +0100 Received: by mail-wm1-x332.google.com with SMTP id j11so40992wmi.3 for ; Fri, 12 Feb 2021 00:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=alIayZaCgXeGvgw55fKOzjFFcHUR3fyBe7Se+TJHAHI=; b=FaqAsgfwjUVZbq5XM5VJUr81waRYUI1rXN+oHv+h29tZX0IixDYdC+sxZVhlNzYBJx haQDEDtyrdJqDFpL7mDgvw+G1WuGLH9mVH67/UfbH2VuUDMGHUlhNFBScKkHgIAX9RAC 3TWoIY7j7TT9ajaAR+GQ0JK8NOhak/DdW9oUKl0Q4y0958m9QJmqnmKQqi+R9uySk/IJ HbFUW3lwl5B9VUEA+cnj1IvgenTJ5BY8L/RGmWemHZ+z92+TgLJ7Q5eYsJqVJvdk0Z2E Qyaad2qHyPdlm5PGZ67rhGwLGzN6E/QWt4b4wv2IL3MCnRSFL3ptsgtTWdPHJKkRpRMX tDsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=alIayZaCgXeGvgw55fKOzjFFcHUR3fyBe7Se+TJHAHI=; b=Qw6x/SYoN+XqEeqtJk8swb4dFtRF4gxGALyiaBQo7Rz64OYT6szrfKmb+WvyOHpbAo 9kmK2YYNVLZT8RBTeuiBXmbWT6DxS3W5JfB+ES3yVxMhwZBl2dJCxdok872YOhes3XMG KmFxXbDXBvf8AdqCmE49rerP8r8xkrZspw9jVZPaveu9RPWxsPen4E+CoJqZnB7q8KXt ayFBGLwCk4kh6otUrY31OTVTsO3ghjmUb9Nn0AVjUWAVJriaPn50Pb4+JDDQS9i+2bV4 Ymhn4s6PepjAhKAG9dxpabcV5a644OoGm265U6d+8HxTaotp4Qpcrn0jAplRcIismilF d7Ig== X-Gm-Message-State: AOAM530dBHAqqd/Y7GMHxmRekc66lBhPc+mQrWRiFTTKg7mg7i9BXczM kewkR153e56JAg70B2cKbN83jVGSsGrbxdqV33dmDbk= X-Google-Smtp-Source: ABdhPJykc/3777Z39+YYRas6Ph/lKnyqbGB+VYknWkGKzIJPeYJ9+xWhbzYqH5Ne/zT/WDI1sDI7MnM0xvPToRK7sxw= X-Received: by 2002:a1c:b60a:: with SMTP id g10mr1453347wmf.6.1613116945397; Fri, 12 Feb 2021 00:02:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Stef Bon Date: Fri, 12 Feb 2021 09:02:14 +0100 Message-ID: Subject: Re: Is it possible to execute several different commands in a single channel without opening another session again? To: libssh2 development X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.22 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 11C82Wq1016067 start a remote shell, non-interactive. Stef _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri Feb 12 11:36:50 2021 Return-Path: Received: from giant.haxx.se (mail [127.0.0.1]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 11CAaNwb016447; Fri, 12 Feb 2021 11:36:42 +0100 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20:0:0:0:32e]) by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 11CAaLbK016434 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 12 Feb 2021 11:36:21 +0100 Received: by mail-wm1-x32e.google.com with SMTP id o10so313937wmc.1 for ; Fri, 12 Feb 2021 02:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=jF81QrPyKkM0Cg/oVAFImxGK2Sl19q9GhdoUfr9xQlY=; b=fIqxOHYbGfFoGwZ+meRG1JUr3J0QfwvBoPmQnFfmfrI4GhOGAXslzWTvV+0M/pjw8U SJyS7EYxSRNI+xNfFGApz5OWhoPx+4rICtsbbHiEd+4rOprWTi3gyP088tNV8UHRVXOR zY1XhvyQMbuMVfXfj8GmDijn05CQOGKJQdTzqyxwBJf4O9TWbmd2OoxhiIOJq36L2zVL ouwFeUX6/au/fBLu2Cllkr2ULna3w7aoPfIyqBSUyYb3zFbeGdBByD6m5zAxnbk8+GUL 80u6MJYRBP9FHUKVGoJBN28Oh8OukiFhMXRUol8JtmVQ/GLf9+S32UyZy4M1I6/330mA N+ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jF81QrPyKkM0Cg/oVAFImxGK2Sl19q9GhdoUfr9xQlY=; b=ouf61TE5jgppqq7tDSmtklT8BghnBGcNQbPXG7Qei3IRdXCVsE4qC42kYZ9VuvsZr3 pCB84rI8giTRaRyuewamoDoLLcnCAw55GlxVvbivZO3dL5Ug+gNK6hZki1aKtLq51B5B narsWyUlKTOV/g0FDDNf/YRtY66YOu5HSQTOdeS3VH8FZ03yB1wdnJ/zKk7UOdHSXoPB MOFi2riQpLXNcgJ9Iy0wIEWqa90H21OpCW0Dx7dqN/aDM6/wnU+vAPY7GHy2IgCDul84 VqFwxNQp+KTzs8AShNvStEAyL0Fxsp7vBLXp42Z6NKKSmaMj69eNH/z6DveQNFGCdgup hcqw== X-Gm-Message-State: AOAM533CiaaE9bPXW0jBhPjoCzr6lHTQ8X0Bkd2Cbx4fWouTDvT2BWFa PxxNEIQNplbCV5jSiFEuMCKH5lr1hKD1zllwy8PdvcBQcQ== X-Google-Smtp-Source: ABdhPJwBBTYybYJlySHJms9cs8iRpjKrX1kw7J1YhgvU106YxeBR3ZjapH2p4hYmH3SXzQc2w8YEFh08vcB1Fj1DqFs= X-Received: by 2002:a1c:4e17:: with SMTP id g23mr2139050wmh.4.1613126176751; Fri, 12 Feb 2021 02:36:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Stef Bon Date: Fri, 12 Feb 2021 11:36:06 +0100 Message-ID: Subject: Re: Is it possible to execute several different commands in a single channel without opening another session again? To: libssh2 development X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.22 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 11CAaNwb016447 Like in another answer you have to process the SSH_MSG_CHANNEL_DATA and SSH_MSG_CHANNEL_EXTENDED_DATA messages. See: https://tools.ietf.org/html/rfc4254 Keep us/me informed you are working it out. Stef _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel