我正在使用ssh.net作为TestStand中的扩展,但我需要以某种方式显示x11转发。有可能吗?我正在使用xming服务器在我的胜利。机器。
谢谢
发布于 2021-06-08 10:15:17
我找到了解决办法:
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();https://stackoverflow.com/questions/67872400
复制相似问题