www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: resize: Time out occurred

resize: Time out occurred

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

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

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2017-04-28

the libssh2 team