libssh2_channel_x11_req_ex(3) libssh2 manual libssh2_channel_x11_req_ex(3)NAME
libssh2_channel_x11_req_ex - request an X11 forwarding channel
SYNOPSIS
#include <libssh2.h>
int libssh2_channel_x11_req_ex(LIBSSH2_CHANNEL *channel, int single_connection, const char *auth_proto, const char *auth_cookie, int
screen_number);
int libssh2_channel_x11_req(LIBSSH2_CHANNEL *channel, int screen_number);
DESCRIPTION
channel - Previously opened channel instance such as returned by libssh2_channel_open_ex(3)
single_connection - non-zero to only forward a single connection.
auth_proto - X11 authentication protocol to use
auth_cookie - the cookie (hexadecimal encoded).
screen_number - the XLL screen to forward
Request an X11 forwarding on channel. To use X11 forwarding, libssh2_session_callback_set(3) must first be called to set LIBSSH2_CALL-
BACK_X11. This callback will be invoked when the remote host accepts the X11 forwarding.
RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a
negative number, it isn't really a failure per se.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED -
SEE ALSO libssh2_channel_open_ex(3)libssh2_session_callback_set(3)libssh2 0.15 1 Jun 2007 libssh2_channel_x11_req_ex(3)
Check Out this Related Man Page
libssh2_channel_setenv_ex(3) libssh2 manual libssh2_channel_setenv_ex(3)NAME
libssh2_channel_setenv_ex - set an environment variable on the channel
SYNOPSIS
#include <libssh2.h>
int libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel, char *varname, unsigned int varname_len, const char *value, unsigned int
value_len);
int libssh2_channel_setenv(LIBSSH2_CHANNEL *channel, char *varname, const char *value);
DESCRIPTION
channel - Previously opened channel instance such as returned by libssh2_channel_open_ex(3)
varname - Name of environment variable to set on the remote channel instance.
varname_len - Length of passed varname parameter.
value - Value to set varname to.
value_len - Length of value parameter.
Set an environment variable in the remote channel's process space. Note that this does not make sense for all channel types and may be
ignored by the server despite returning success.
RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a
negative number, it isn't really a failure per se.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED -
SEE ALSO libssh2_channel_open_ex(3)libssh2 0.15 1 Jun 2007 libssh2_channel_setenv_ex(3)
hi, everybody£º
i have a question, pls help me¡£
OS : RS/6000 AIX 4.3.3
cPU : Powerpc,POWER3
I install X11.Dt, X11.apps, X11.base, X11.compat, X11.motif, X11.vsm full and Optional install X11.fnt using smitty!
When i compling my gui programs , i found that all the include file of ... (1 Reply)
Hi,
I am using Putty, enabled SSH X11 forwarding and entered the X11 display location as "localhost:0". However I encountered the following error:
------------------------------------
# xclock &
2941
# X connection to localhost:10.0 broken (explicit kill or server shutdown).
+ Exit 1... (4 Replies)
X11 forwarding problem between 2 RHEL4 machines with SSH
Already configured the following on both machines under /etc/ssh
Under sshd_config:
UsePAM no
AllowTcpForwarding yes
Under ssh_config:
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
-----------------------------
Using... (1 Reply)
I am trying to ssh into a remote sun server, however I get X11 forwarding error. I have checked sshd_config file and X11 forwarding is enabled.
Also xhost command doesnt give any output, it doesnt even return the prompt.I have to Ctrl C out of the situation. any suggestions anyone?? (1 Reply)
Hi,
I have xmanager installed on my windows PC. But I am not able to connect to AIX server.
It's giving the error as follows:
The X11 forwarding request was rejected. Graphics mode is not coming up in AIX server.
Please help as I have to install oracle patchset urgently. (1 Reply)
Hey guys,
I'm on a Solaris 9 boxes and I setup Putty to do X11 forwarding I can get my Xmanager to connect and load Xwindows screens fine. But, sometimes if I lose my putty connection or the app im running crashes X freaks out and deletes my display, setting it to nothing. When I add my display... (2 Replies)
Hi,
We've been facing a strange issue. Clients use X11 forwarding via SSH on HP server and sometimes the same DISPLAY is assigned to two (maybe more) sessions. As a result, some users can't open their applications, and some have their windows redirected to somebody else.
It looks as if sshd... (1 Reply)
Hello,
FreeBSD is not forwarding the request to the Outlook Web Access. Is there some process that needs to be run in order for this to start?
The server was rebuilt and is pingable.
Any suggestion is greatly appreciated.
Thank you,
Gish (1 Reply)
Hi
I am trying to run a program on a solaris bx that requires an xwindow. I have exceed running and X11 forwarding enabled in putty I sent my display but the output is can't open display.
To connect to the server I ssh to a jump host and ssh to the server and then su to root. Could this have... (4 Replies)
Hi guys ;)
I'm new here. I had been reading a long time here on the forums but now I registered finally.
And got a question for you.
Since yesterday I've got successfully installed a X11-connection from my WinXP to a RedHat EL 5 - Box. Now there's a web portal needed.
So I have to make a... (2 Replies)
Im trying to forward X11 from new servers by logging with NIS User, but no $HOME is mounted from NIS maps, this is how it was set-up.
I got Xming for X11 forwarding which works beautifully with putty, but it aint working with this situation where my $HOME folder is missing,
Means when Im logging... (2 Replies)
I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
hi guys
i have a simple question !
i have two ips . a valid and internal(172.16.11.2)
i want to use port forwarding to forward any request to valid IP port 8001 to internal ip port 80 .
i use this rule :
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp... (1 Reply)