从 UNIX/LINUX 机器在 Windows 机器上执行命令
是否可以使用 UNIX 或 Linux 计算机在 Windows 远程计算机上执行命令(例如:启动位于远程计算机上的 .bat 文件)?
是否有类似 scp/ssh 机制或至少有一种通过网络连接到 Windows 计算机的方法?
感谢您的帮助。
is it possible to execute a command (ex: launching a .bat file located on the remote machine) on a Windows Remote Machine, using a UNIX or Linux Machine ?
Is there something like a scp/ssh mechanism or at least a way to connect to a Windows Machine passing through the network ?
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,最新的 Windows 版本仅支持远程桌面协议。据我所知,客户端版本仅允许单个用户,而服务器版本则安装了 终端服务允许多个同时用户。
Windows Server 版本也支持 Telnet 协议,但默认情况下该服务器被禁用 - 甚至可能没有安装。因此,您必须手动启用它。不过,您真的想使用 Telnet 吗?仅出于安全考虑就足以使其几乎毫无用处。
还有一个使用 Cygwin DLL 的 OpenSSH for Windows 版本。我还没有尝试过,但使用 Unix 世界的 SSH 实现确实有其吸引力(可能还有一些缺点)。另请参阅此。
编辑:
最新的 Windows 版本还支持 Windows 远程管理 系统,它允许您通过一些 欺骗。
By default, recent Windows versions only support the Remote Desktop protocol. As far as I know, client versions only allow a single user, while server versions with installed Terminal Services allow for multiple simultaneous users.
Windows Server versions also support the Telnet protocol, but the server is disabled by default - it may not even be installed. Therefore you will have to enable it manually. Do you really want to use Telnet of all things, though? Just the security concerns are enough to make it mostly useless.
There is also a version of OpenSSH for Windows, that uses the Cygwin DLL. I have not tried it, but using an SSH implementation from the Unix world does have its appeal (and probably a few disadvantages). See also this.
EDIT:
Recent Windows versions also support the Windows Remote Management system, which allows you to launch an interactive session throuh a bit of trickery.
您可能想尝试 Vandyke VShell。
You may want to try Vandyke VShell.