Subject: resize: Time out occurred

resize: Time out occurred

From: Shaun Hirst <>
Date: Fri, 28 Apr 2017 09:10:16 +0100



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:

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

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_session_set_blocking(Session, 0);


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


Thanks in advance



Received on 2017-04-28