From libssh2-devel-bounces@cool.haxx.se  Fri Apr 28 10:10:47 2017
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id v3S8AH9Q010335;
	Fri, 28 Apr 2017 10:10:40 +0200
Received: from suitcasetv.com (82-70-201-158.dsl.in-addr.zen.co.uk
 [82.70.201.158])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id v3S8AFZO010322
 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 28 Apr 2017 10:10:16 +0200
Received: from woodbridge ([10.64.10.50])
 by suitcasetv.com (Kerio Connect 7.1.4)
 for libssh2-devel@cool.haxx.se; Fri, 28 Apr 2017 09:10:09 +0100
From: "Shaun Hirst" <shaun@suitcasetv.com>
To: <libssh2-devel@cool.haxx.se>
Subject: resize: Time out occurred
Date: Fri, 28 Apr 2017 09:10:16 +0100
Message-ID: <1d9901d2bff6$de751200$9b5f3600$@suitcasetv.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdK/9GOmnxSaTHCqRQe7jOnSwHxaUg==
Content-Language: en-gb
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="===============1260092361=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

This is a multipart message in MIME format.

--===============1260092361==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_1D9A_01D2BFFF.403A3D50"
Content-Language: en-gb

This is a multipart message in MIME format.

------=_NextPart_000_1D9A_01D2BFFF.403A3D50
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

 

When connecting to a ubuntu server I get the following message

 

Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.10.20-al-5.0-pr2_sa armv7l)

 

* Documentation:  https://help.ubuntu.com/

Last login: Fri Apr 28 07:46:33 2017 from 10.64.10.50

resize: Time out occurred

only after the time out message do I get a prompt

 

if I send a command before getting a prompt I get the following message

 

resize: unknown character, exiting.

 

How can I stop this from happening

 

My code is doing the following 

 

Session = libssh2_session_init_ex(NULL, NULL, NULL, this);

 

libssh2_session_handshake(Session, Socket)

 

Channel = libssh2_channel_open_session(Session);

 

libssh2_channel_request_pty(Channel, "vanilla") // I've also tried dumb,
basic and vt100 all give the same error

 

libssh2_channel_shell(Channel)

 

libssh2_session_set_blocking(Session, 0);

 

libssh2_userauth_password(Session, "User" , "Pass" );

 

Thanks in advance

 

Shaun


------=_NextPart_000_1D9A_01D2BFFF.403A3D50
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB =
link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p =
class=3DMsoNormal>Hi,<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>When =
connecting to a ubuntu server I get the following =
message<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Welcome to Ubuntu 14.04.1 LTS (GNU/Linux =
3.10.20-al-5.0-pr2_sa armv7l)<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal> * =
Documentation:&nbsp; https://help.ubuntu.com/<o:p></o:p></p><p =
class=3DMsoNormal>Last login: Fri Apr 28 07:46:33 2017 from =
10.64.10.50<o:p></o:p></p><p class=3DMsoNormal><o:p></o:p></p><p =
class=3DMsoNormal>resize: Time out occurred<o:p></o:p></p><p =
class=3DMsoNormal><o:p></o:p></p><p class=3DMsoNormal>only after the =
time out message do I get a prompt<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>if I send a =
command before getting a prompt I get the following =
message<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>resize: unknown character, exiting.<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>How can I =
stop this from happening<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>My code is =
doing the following <o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Session =3D =
libssh2_session_init_ex(NULL, NULL, NULL, this);<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>libssh2_session_handshake(Session, =
Socket)<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Channel =3D =
libssh2_channel_open_session(Session);<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>libssh2_channel_request_pty(Channel, =
&quot;vanilla&quot;) // I&#8217;ve also tried dumb, basic and vt100 all =
give the same error<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>libssh2_channel_shell(Channel)<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>libssh2_session_set_blocking(Session, =
0);<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>libssh2_userauth_password(Session, &#8220;User&#8221; =
, &#8220;Pass&#8221; );<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Thanks in =
advance<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Shaun<o:p></o:p></p></div></body></html>
------=_NextPart_000_1D9A_01D2BFFF.403A3D50--



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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============1260092361==--


