执行plink(putty)命令时出现问题

执行plink(putty)命令时出现问题,putty,plink,Putty,Plink,我正在使用Plink执行远程命令: 在单行中使用此from cmd提示符时,它不起作用: C:\>c:\plink.exe -l userId -pw psw -m C:\goto\test.bat remote_host 它表示无法打开命令文件C:\goto\test.bat 但以下工作: C:\>c:\plink.exe -l userId -pw psw remote_host C:\>C:\goto\test.bat 请帮助。试着像这样运行它: c:\plink.

我正在使用Plink执行远程命令:

在单行中使用此from cmd提示符时,它不起作用:

C:\>c:\plink.exe -l userId -pw psw -m C:\goto\test.bat remote_host
它表示无法打开命令文件C:\goto\test.bat

但以下工作:

C:\>c:\plink.exe -l userId -pw psw remote_host
C:\>C:\goto\test.bat 

请帮助。

试着像这样运行它:

c:\plink.exe -l userId -pw psw remote_host C:\goto\test.bat

试着像这样运行它:

c:\plink.exe -l userId -pw psw remote_host C:\goto\test.bat
根据经验判断,这应该是可行的:

C:\>c:\plink.exe -l userId -pw psw remote_host C:\goto\test.bat
根据经验判断,这应该是可行的:

C:\>c:\plink.exe -l userId -pw psw remote_host C:\goto\test.bat
这对我起了作用:

或者如果是本地计算机:

Caps-将其更改为您所在的州

这对我很有效:

或者如果是本地计算机:


Caps-将其更改为您的状态

是否使用SSH协议?你有一个SSH服务器在那个窗口上运行吗?这不是一个superuser.com问题吗?@jlafay:我想是的,但似乎不可能投票关闭它,因为它有一个悬赏。这使用SSH协议吗?你有一个SSH服务器在那个windows上运行吗?这不是一个superuser.com的问题吗?@jlafay:我想是的,但似乎不可能投票关闭它,因为它有一个赏金。goto是远程定位的bat路径。所以你是说C:\goto\test.bat在远程机器上?如果是这样,您需要运行:c:\plink.exe-l userId-pw psw remote_host c:\goto\test.bat。-m标志用于plink从本地文件读取远程命令。您应该编辑答案,以包含注释中的最终解决方案。goto是远程定位的bat的路径。那么您是说C:\goto\test.bat在远程计算机上?如果是这样,您需要运行:c:\plink.exe-l userId-pw psw remote_host c:\goto\test.bat。-m标志用于plink从本地文件读取远程命令。您应该编辑答案,以包含注释中的最终解决方案。