通过远程连接使用 GUI 运行程序

发布于 2024-07-28 21:59:26 字数 98 浏览 1 评论 0原文

我正在尝试通过使用 PKA ssh 连接的 python 脚本启动 perfmon 和另一个具有 GUI 的程序。 是否有可能做到这一点? 如果是这样,有人能指出我正确的方向吗?

I'm trying to start perfmon and another program that have GUI's through a python script that uses a PKA ssh connection. Is it possible to do this? If so could anyone point me in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终陌 2024-08-04 21:59:26

我发现了一个名为 psexec 的程序,它可以在另一台 Windows 计算机上远程打开程序。 http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
您可以与此命令行程序一起使用一些选项或标志,以通过 GUI 打开程序并在远程计算机上查看它。

I've found a program called psexec that will open a program remotely on another windows machine. http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
There are options or flags that you can use with this command line program to open a program with a GUI and view it on a remote machine.

寻找我们的幸福 2024-08-04 21:59:26

如果你的意思是这个 perfmon(在Linux下运行的那个&c ==我相信有一个honomym程序仅适用于 Windows,并且行为方式非常不同),ssh -Xssh -Y 可让您打开一个 ssh 连接,该连接通过隧道传输 X11 (GUI) 连接(如果服务器和当然,客户端都配置为允许这样做)。

这里详细介绍了如何做到这一点way”(使用 -p 等); 这里的解释>-X 和更安全的 -Y 现代选项。 只要应用程序在 Linux 机器上运行,您就可以在任何地方使用显示器(“X 服务器”),并通过适当的 ssh 隧道安全地连接它们。

如果您正在谈论的是Windows(即在Windows机器上运行perfmon应用程序,无论您想要GUI在哪里),我不知道如何通过ssh隧道传输GUI(它可能不可能)。 一种可能性是 VNC (该协议有多种实现方式,包括商业的和免费的),但我我对此不太有经验。

If you mean this perfmon (the one that runs under Linux &c == I believe there's a honomym program that's Windows-only and would behave very differently), ssh -X or ssh -Y let you open an ssh connection which tunnels an X11 (GUI) connection (if server and client are both configured to allow that, of course).

Here are copious details of how to do it "the old way" (with -p etc); here, the explanation of -X and the more secure -Y modern options. As long as the app is running on a Linux box, you can have the display ("X Server") just about anywhere, with a proper ssh tunnel securely connecting them.

If it's Windows you're talking about (i.e. running the perfmon app on a Windows box, wherever it is you want the GUI), I don't know how to tunnel a GUI over ssh (it may not be possible). One possibility is VNC (there are several implementations of the protocol, both commercial and free) but I'm not all that experienced with it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文