【发布时间】:2021-06-07 13:19:10
【问题描述】:
我在 TestStand 中使用 ssh.net 作为扩展,但我需要以某种方式显示 x11 转发。有可能吗? 我在 win 上使用 xming 服务器。机器。
谢谢
【问题讨论】:
标签: ssh.net x11-forwarding teststand
我在 TestStand 中使用 ssh.net 作为扩展,但我需要以某种方式显示 x11 转发。有可能吗? 我在 win 上使用 xming 服务器。机器。
谢谢
【问题讨论】:
标签: ssh.net x11-forwarding teststand
我找到了解决办法:
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();
【讨论】: