From libssh2-devel-bounces@cool.haxx.se  Thu Apr  9 16:17:48 2020
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 039EHCIk024480;
	Thu, 9 Apr 2020 16:17:39 +0200
Received: from mail.knudseneng.com (mail.knudseneng.com [158.69.5.36])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 039EHAYQ024409
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 9 Apr 2020 16:17:11 +0200
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=knudseneng.com; s=default; h=Content-Transfer-Encoding:Content-Type:
 MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=EYHUm2s/UbIr+GfvurfLv3LsTU0HH/AKM2+nluEtehM=; b=WdZYxmN8doge72jMmGpriOjlhG
 kwP1t2PUhWUqNNlGHk3TXNOmFDcEshYW4tFXrwV6E9/DdEDkK1FHsQCQC8jPZ8jf7+JQ47ug8c1dn
 rc4H+qzB0GyFM6mpX4K/thsslbjtI4NcYNg/gM9ZoRyq6nMmcMLlgg8a5P7rhEBKSxvjZsuW9cGCx
 jkfSTa23ZK1yWPXaqr2rI3nWqIBjiaE3X6xJa1kfaljkFF2rfOvh9eRHUA2CC8xEHnUxchN95IziZ
 kDf7KI0t6m1c/iH6iVgCqHwrxO8EVX7v9MVx1Fxw7f6Tr4Cf9P4Wxbdp5iG9cia7BJsIZOyA7cX13
 gr6hKfew==;
Received: from dsl-205-210-52-111.kingston.net ([205.210.52.111]:63070
 helo=[192.168.2.63]) by zeus.canspace.ca with esmtpsa (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93)
 (envelope-from <dave@knudseneng.com>) id 1jMXzJ-0001jb-RP
 for libssh2-devel@cool.haxx.se; Thu, 09 Apr 2020 10:17:06 -0400
To: libssh2-devel@cool.haxx.se
From: Dave Colter <dave@knudseneng.com>
Subject: Applying patch #397
Message-ID: <04898bb7-49b4-d34f-2043-7755fd33ef73@knudseneng.com>
Date: Thu, 9 Apr 2020 10:17:03 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.6.0
MIME-Version: 1.0
Content-Language: en-US
X-OutGoing-Spam-Status: No, score=-0.5
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - zeus.canspace.ca
X-AntiAbuse: Original Domain - cool.haxx.se
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - knudseneng.com
X-Get-Message-Sender-Via: zeus.canspace.ca: authenticated_id:
 dave@knudseneng.com
X-Authenticated-Sender: zeus.canspace.ca: dave@knudseneng.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id 039EHCIk024480

Hello,
Rookie question here. I am primarily a Windows developer.

My Windows 10 application uses libssh2 (linked with WinCNG) to connect 
to an ARM-based computer running Yocto Linux. Recently it stopped 
working and will not work on Windows 10 versions 1903 and 1909. The 
libssh2_session_handshake call fails, returning -43 
(LIBSSH2_ERROR_SOCKET_RECV). On the ARM computer, the log file shows: 
"error: kex protocol error: type 5 seq 2 [preauth]".

Long story short, the problem appears to be documented here:
https://github.com/libssh2/libssh2/issues/388

There is also evidently a patch, #397. How does one go about applying a 
patch? I have GIT for Windows but do not know what to put on the command 
line.

Thanks!

Dave Colter
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 24 16:30:52 2020
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id 03OEUBtN031683;
	Fri, 24 Apr 2020 16:30:43 +0200
Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:b2b])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id 03OEU8SX031320
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 24 Apr 2020 16:30:09 +0200
Received: by mail-yb1-xb2b.google.com with SMTP id l5so5139231ybf.5
 for <libssh2-devel@cool.haxx.se>; Fri, 24 Apr 2020 07:30:10 -0700 (PDT)
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=n0NwZO5msDNYTUzGOhn7sp9/jTvf0gKPWap7zqwOJhw=;
 b=VD1iwrBt7aLj+3jMaorzwdOvYFszffmmcN1ae2zsX/2epNAho+uRLhsl4RT2+4XBrl
 TPrYPKxJ9hc9MJHkUO6rgF36VOcy8Voc2QqFRC9+As6PenL8DgC2bPkDAmCC3cXoIE30
 0P6PuGgDLj+y6B8LOYmyiEIVXFQDVFXGe9eEOO6/JDK0++P0sG3IX0siQ3pQd60CEtNL
 Z4sGfVoTj0An0D0eqSE1RD3jOGbiJmCWIr9DUYKGyZ+fRG51ZO5cH1ZYEq6884Dfy/0f
 7HFWFHw8NKxiqt6EOjUxUttCD4QCGsPATFfW2YYwKUo40e8Po+mqZOH38uEyW3e0PJU/
 C07w==
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=n0NwZO5msDNYTUzGOhn7sp9/jTvf0gKPWap7zqwOJhw=;
 b=lkAp6yQagMRXe3UTaPQOfB794rGBVHZcyNvq6qs9Q+q+WYK3MjHfKLzes0EeqWoLIA
 MouNkm/f3R/yhbhDovJfunk1IEXCPUMs7ZySOVOqsTcbeD6LARTQMTfPf21JZduvBJEX
 1J+uH7cSAQVem1rna7EXVYNNBcpXeCBJhHZ0ROm/R3Jy9TiTI7grqYq15oe23eNBohyH
 PIFKetjYPcu6TGzqvymrfkPn5CZNehzuJ7ioZS8VCqvx+9ue3phue1wrIB446vKq76fy
 vOTArZezjR86cWdME+RtbiOXyHskaCkTjvBErUnMAopGI7ATAAPeH3RIkFIsieSsrBUT
 Thcw==
X-Gm-Message-State: AGi0PuYvwfmTL4vPIwOED92g/UtrrwTPKWlengXx/OVku/uXCCVv8Eub
 revkNLhU67JEMtE7SoG+IrIK+f+OKMNuPxoEcTObnw==
X-Google-Smtp-Source: APiQypIglI1CYsd3jqQiAYqkxxjbQp22o1hLKlMvsNugaOn/YWisoymjMxBYWeOWYSO4EoD9PfGD0kukpvs9HcHf+cM=
X-Received: by 2002:a25:fc08:: with SMTP id v8mr15199503ybd.389.1587738603695; 
 Fri, 24 Apr 2020 07:30:03 -0700 (PDT)
MIME-Version: 1.0
From: Szymon Halat <szymonh10@gmail.com>
Date: Fri, 24 Apr 2020 16:29:52 +0200
Message-ID: <CABzUkC_GjECi278P3WRqX-0Z7ctxP42GQZo38jAxxoODAqSu8A@mail.gmail.com>
Subject: terminal-like application - multiple usage of one channel
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 <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0060722452=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0060722452==
Content-Type: multipart/alternative; boundary="0000000000007832b405a40a33b5"

--0000000000007832b405a40a33b5
Content-Type: text/plain; charset="UTF-8"

Hello,
I'm preparing terminal-like application with libssh2 and I'm struggling
with one thing: multiple usage of channel. I'm running ssh2_exec.c example
and it's ok, but when I add multiple commands, it is necessary to create
new channel for each command, in other case I receive error: "bad usage".
However, my application expects, that I'll type command, send it,
receive response and type another command in the same place. I don't want
to start from the beginning. Example:
cmd1: cd Desktop
// no output
cmd2: ls
// list of files at Desktop

Is it possible with that library?

Best regards,
Szymon

--0000000000007832b405a40a33b5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div>I&#39;m preparing terminal-like application wit=
h libssh2 and I&#39;m struggling with one thing: multiple usage of channel.=
 I&#39;m running ssh2_exec.c example and it&#39;s ok, but when I add multip=
le commands, it is necessary to create new channel for each command, in oth=
er case=C2=A0I receive error:=C2=A0&quot;bad usage&quot;. However, my appli=
cation expects, that I&#39;ll type command, send it, receive=C2=A0response =
and type another command in the same place. I don&#39;t want to start from =
the beginning. Example:</div><div>cmd1: cd Desktop</div><div>// no output</=
div><div>cmd2: ls</div><div>// list of files at Desktop</div><div><br></div=
><div>Is it possible with that library?</div><div><br></div><div>Best regar=
ds,</div><div>Szymon</div></div>

--0000000000007832b405a40a33b5--

--===============0060722452==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============0060722452==--

