'Libssh, X11 forewarding

i am trying to user X11 forwarding with libssh. Because i have not found good examples for doing so, can anyone give me some example how to use X11 with libssh?

Thanks!



Solution 1:[1]

Did you read the tutorial with code examples?

http://api.libssh.org/master/libssh_tutor_forwarding.html

Solution 2:[2]

I too was trying to get X11 working with libssh but had no success. I was only able to push through regular cmds that didn't require a GUI.

If java is an option for you I would recommend the Java Secure Channel library. Documentation isn't so good but there's an examples folder with X11 code that really helped me. It worked great with xming.

http://www.jcraft.com/jsch/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 asn
Solution 2 Huy