.Net 类通过 SSH 在 Linux 上远程执行?
我不知道从哪里开始简单地执行远程脚本并将输出返回到 Web 表单。在本例中,我们有一个执行一些第三方工具的应用程序服务器。我们想为我们的高级用户编写一个界面,允许他们检查各种进程的状态,并执行一些支持可用的第三方管理工具。问题是我们只能通过 Putty 通过 SSH 连接到这台 Linux (RedHat) 机器。我查看了 PsExec 但它似乎不处理 SSH。如果可能的话,我想避免任何大的安全漏洞,但这适用于封闭网络中有限数量的用户。 感谢您在入门时提供的任何帮助!
I'm not sure where to get started with simply executing a remote script and returning the output to a web form. In this case we have an application server that executes some 3rd party tools. We'd like to write an interface for our power users that allow them to check the status of various processes and also execute some of the 3rd party admin tools that support has available. The issue is that we only connect to this Linux (RedHat) machine via Putty over SSH. I looked into PsExec but it doesn't seem to handle SSH. I'd like to avoid any large security holes, if possible, but this is intended to be a limited number of users in a closed network.
Thanks for any assistance getting started!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 .NET 中执行 SSH 有多种选择 - 尽管您需要一个库,因为没有内置任何内容:
There are several options to do SSH in .NET - although you need a library for that since nothing is built-in: