Subject: Re: Login problem - Power Broker Menu

Re: Login problem - Power Broker Menu

From: Jose Baars <>
Date: Thu, 03 Mar 2011 20:56:55 +0100

Op 3/3/2011 2:06 PM, Naveen Sharma schreef:

>In a typical ssh session, a user will give "1" and will press enter
>and will enter the shell.

>rc = libssh2_channel_write(channel, "1", strlen("1"));

Where is the 'enter'? Wouldn't you want to write "1\n" or "1\r\n"?

rc = libssh2_channel_send_eof(channel);

Why close the channel? Do just want to press 1 and then stop doing anything useful?

I must admit I didn't try this out myself, but this just doesn't look
right from your description.



Received on 2011-03-03