Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_channel_x11_req_ex(3) [centos man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. AIX

How to installing .h of Dt

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)
Discussion started by: q30
1 Replies

2. UNIX for Dummies Questions & Answers

X11 forwarding not working

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)
Discussion started by: panggou
4 Replies

3. Red Hat

X11 forwarding problem between 2 RHEL4 machines with SSH

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)
Discussion started by: panggou
1 Replies

4. UNIX for Advanced & Expert Users

SSH problems

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)
Discussion started by: ysk
1 Replies

5. AIX

Unable to connect to AIX server through xmanager

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)
Discussion started by: dwiravi
1 Replies

6. UNIX for Dummies Questions & Answers

X11 problem

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)
Discussion started by: kingdbag
2 Replies

7. HP-UX

'X11 forwarding' SSHD assigns already used port

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)
Discussion started by: piooooter
1 Replies

8. BSD

forwarding the request to the Outlook Web Access

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)
Discussion started by: TESTQWER
1 Replies

9. UNIX for Dummies Questions & Answers

Xwindows not working

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)
Discussion started by: naddy
4 Replies

10. Linux

Web based X11 access

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)
Discussion started by: supermaRiio
2 Replies

11. Linux

Forward X11 Putty+Xming without $HOME

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)
Discussion started by: kl1ngac1k
2 Replies

12. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

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)
Discussion started by: dkarr
2 Replies

13. Cybersecurity

Stop email forwarding

I want if I send a mail to somebody, he will not be able to forward it to anybody. How it is possible in MS outlook? (1 Reply)
Discussion started by: amisubha
1 Replies

14. IP Networking

Port forwarding issue

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)
Discussion started by: mhs
1 Replies

15. UNIX for Beginners Questions & Answers

X11 forwarding issues

Unable to get X11 activated on my login even after Unix admin has enabled it (2 Replies)
Discussion started by: tomsayer1977
2 Replies