sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
http://sshnet.github.io/SSH.NET/
MIT License
3.9k stars 921 forks source link

Graphics X11 forwarding #790

Open jhonson27 opened 3 years ago

jhonson27 commented 3 years ago

Hi

Connecting to server which creates graphic window popup. Is there a way to do display forwarding ?

DamianSuess commented 1 year ago

I've had success in the past launching .NET GUI apps, but it is hit or miss with the environments. The wild thing is, from a regular SSH connection I can run the following. However, with SSH.NET, I have to do a separate _ssh.CreateShellStream(...) connection, which goes back to, "hit-or-miss".

DISPLAY=:0 dotnet "~/VSLinuxDbg/TestGui/TestGui.dll" &

Do make sure that X11Forwarding yes is set in your /etc/ssh/sshd_config, or put ForwardX11 in the ~/.ssh/config file. *