简体   繁体   English

Linux和Windows中的远程命令执行和文件访问

[英]Remote commands execution and file acces in Linux and Windows

Suppose I have a server application installed in a few Linux and Windows machines. 假设我在几台Linux和Windows计算机上安装了服务器应用程序。 Now I would like to control it remotely. 现在,我想对其进行远程控制。 That is, I would like to start and stop the application, update the application configuration files, reads the logs remotely. 也就是说,我想启动和停止应用程序,更新应用程序配置文件,远程读取日志。

It looks to be easy in the Linux worlds. 在Linux世界中看起来很容易。 I can use ssh , scp , and probably nfs to execute commands in remote Linux machines and access files there. 我可以使用sshscp以及可能的nfs在远程Linux机器中执行命令并访问那里的文件。 The problem is that I would like to execute commands and access files in remote Linux and Windows machines uniformly from a Windows machine. 问题是,我想在远程Linux和Windows机器均匀地Windows机器上执行命令和访问文件。 I need also some scripting capabilities too. 我还需要一些脚本功能。

What is the best way to do that? 最好的方法是什么?

您可以尝试在Windows计算机上使用cygwin http://www.cygwin.com/并与其一起安装ssh服务器。

  1. If you need graphical tools, use VNC 如果需要图形工具,请使用VNC
  2. there is an OpenSS implementation targeting Windows at http://sshwindows.sourceforge.net/download/ http://sshwindows.sourceforge.net/download/上有一个针对Windows的OpenSS实现。
  3. since there is (besides Cygwin/MinGW) no possibility to run bash code (ksh/csh/tcsh code as well) you should make yourself familiar with the windows scripting host. 由于(除了Cygwin / MinGW之外)没有运行bash代码(以及ksh / csh / tcsh代码)的可能性,因此您应该使自己熟悉Windows脚本宿主。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM