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

Archive Index This month's Index

Subject: Re: Login problem - Power Broker Menu

Re: Login problem - Power Broker Menu

From: Jose Baars <peut_at_peut.org>
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.

José

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2011-03-03

the libssh2 team