远程运行程序 [英] Running Programs Remotely

查看:127
本文介绍了远程运行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在对等网络中的远程计算机上运行进程.

我需要运行一个小程序(作为安装过程的一部分),该程序将报告安装了模块的驱动器的制造商序列号.我了解与此相关的危险,但是,我的客户系统都没有连接到Internet. (或者将永远没有我的话说)所有终端都运行Windows XP.典型的网络大小:3台计算机,最大大小:16,最小大小:1.

问候,

Bram:)

How do I run a process on a remote computer in a Peer to Peer Network.

I need to run a small program (as part of the Installation process) which reports back the Manufacturers Serial Number of the drive on which the modules were installed. I understand the dangers associated with this, BUT, None of my customers systems are connected to the Internet. (or will ever be without my say so) All terminals run Windows XP. Typical Network Size: 3 Computers, Max Size: 16, Min Size: 1.

Regards,

Bram :)

推荐答案

解决方案1:
我听说过PsExec,但还没有尝试过,给它一个机会:
http://technet.microsoft.com/zh-cn/sysinternals/bb897553.aspx

解决方案#2:
我个人喜欢cygwin,因为Windows上有不错的linux命令行工具. :)您可以在客户端计算机上安装cygwin(这是Windows的一组linux命令行实用程序),并在所有客户端计算机上设置ssh服务器.然后,您可以使用ssh(甚至从linux)连接到计算机,并远程运行命令.可以设置SSH服务器/客户端对,以便服务器使用rsa密钥对自动接受特定客户端(具有正确的私钥).您必须在每个客户端上设置ssh服务器,以便它们自动接受您的计算机,而不会提示输入密码以促进自动化/脚本编写.我仅对linux ssh服务器执行了此操作,但在Windows/cygwin上应该与Google的"sshauthorized_keys"相同,以找到有关设置接受指定客户端的ssh服务器的教程.如果您尚未使用ssh,那么了解ssh的基本用法将非常有用!
我还没有尝试过PsExec,但是使用ssh可以在远程计算机上运行命令行编,并且可以肯定地在本地计算机上获取它的文本输出.
SOLUTION #1:
I heared about PsExec, but haven''t tried it, give it a chance:
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

SOLUTION #2:
I personally love cygwin because of the nice linux commandline tools on windows. :) You can install cygwin on the client machines (this is a set of linux commandline utilities for windows) and setup ssh server on all of the client machines. Then you can connect to the machines using ssh (even from linux) and run commands remotely. Ssh server/client pairs can be set up so that the server automatically accepts particular clients (that have the right private key) using rsa key pairs. You must set up ssh servers on each client so that they automatically accept your machine without prompting for a password to facilitate automatization/scripting. I did this only with linux ssh servers, but it should be the same on windows/cygwin just google "ssh authorized_keys" to find a tutorial about setting up ssh servers that accept a specified client. Getting to know the basic use of ssh is very useful if you haven''t used it yet!!!

I haven''t tried PsExec, but with ssh you can run a commandline prog on the remote machine and you get back the text output of it on your local machine for sure.


这篇关于远程运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆