【问题标题】:How to connect to remote server through PuTTY and execute local and remote files如何通过 PuTTY 连接远程服务器并执行本地和远程文件
【发布时间】:2018-12-31 07:03:02
【问题描述】:

我想通过 PuTTY 登录服务器并执行本地系统中文本文件中的命令并执行远程系统中的脚本文件。

plink.exe user@host -pw password -m C:\Users\commands.txt

上述命令是从本地系统还是从远程系统执行文本文件“commands”?

【问题讨论】:

    标签: automation putty plink


    【解决方案1】:

    来自documentation

    -m file 从文件中读取远程命令

    但也许这不是太清楚。当使用参数-m 时,plink.exe 读取 local 命令文件(在您的示例中为C:\Users\commands.txt),但该文件的 content 在 远程主机。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多