【问题标题】:Run Windows Script with several tunnels for Linux为 Linux 运行带有多个隧道的 Windows 脚本
【发布时间】:2016-03-29 10:57:35
【问题描述】:

我正在尝试在 Linux 中为多个服务器创建一个带有多个隧道的脚本,并在这些服务器中运行一个脚本。

基本上,我在 8 台 RedHat 机器中有一个 DailyCheck.sh,并且我在 windows 中有一个隧道:

"putty.exe user@xxx.xxx.xxx.xxx -pw  <password> -L port:127.0.0.1:port"

然后我打开每一个并运行命令 DailyCheck.sh。

我想要的是 Windows 中的一个文件:

"putty.exe user@xxx.xxx.xxx.xxx -pw  <password> -L port:127.0.0.1:port"
sudo su -
./dailyCheck.sh
<delay if necessary>
"putty.exe user@xxx.xxx.xxx.xxx -pw  <password> -L port:127.0.0.1:port"
sudo su -
./dailyCheck.sh
(....)

我们有什么办法吗?

感谢和最好的问候, 安德烈。

【问题讨论】:

标签: linux windows bash shell


【解决方案1】:

我建议您为每个主机设置proxy command 而不是隧道。然后使用remote command execution远程运行脚本。

另外,为了获得更好的答案,我推荐使用标签

【讨论】:

    猜你喜欢
    • 2012-11-09
    • 1970-01-01
    • 1970-01-01
    • 2012-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-07
    • 1970-01-01
    相关资源
    最近更新 更多