【问题标题】:forwarding x11 by SSH.NET c# library通过 SSH.NET c# 库转发 x11
【发布时间】:2021-06-07 13:19:10
【问题描述】:

我在 TestStand 中使用 ssh.net 作为扩展,但我需要以某种方式显示 x11 转发。有可能吗? 我在 win 上使用 xming 服务器。机器。

谢谢

【问题讨论】:

    标签: ssh.net x11-forwarding teststand


    【解决方案1】:

    我找到了解决办法:

     SSHInstance = new SshClient(HostOrIP, Port, Username, Password);
     SSHInstance.Connect();
     streamSSH = SSHInstance.CreateShellStream(ShellID, 1, 0, 0, 0, 2000000);
    
     ForwardedPortRemote forwardedPortRemote = new ForwardedPortRemote(6000 +X11ServerDisplay, HostOrIP, 6000 + X11LocalDisplay);
     SSHInstance.AddForwardedPort(forwardedPortRemote);
     forwardedPortRemote.Start();
    

    【讨论】:

      猜你喜欢
      • 2019-03-17
      • 2013-11-04
      • 1970-01-01
      • 2020-07-10
      • 2018-04-04
      • 1970-01-01
      • 1970-01-01
      • 2020-04-22
      • 1970-01-01
      相关资源
      最近更新 更多