我正在尝试创建Cmder的ConEmu任务,我想导航到特定的目录,并运行一个SSH命令,并使用git-bash为此。我可以更改目录,但不能运行SSH命令。
命令
*cmd /c "%ConEmuDir%\..\git-for-windows\bin\bash" --login -i -new_console:d:E:\Project\SSHKeys && ssh -i "secret.pem" ubuntu@ip_address错误
'C:\cmder\vendor\conemu-maximus5\..\git-for-windows\bin\bash" --login -i && ssh -i "secret.pem' is not recognized as an internal or external command, operable program or batch file.
发布于 2020-08-30 03:26:14
这里有几个问题
你不需要cmd.exe来运行
cmd /c ...运行一些东西,你也必须学习cmd是如何取消引用的。您必须在命令行cmd /c ""something" ... & ..."两边再添加一个双引号
https://stackoverflow.com/questions/63640466
复制相似问题