无法使用带有ssh.net的.RunCommand()

时间:2015-04-21 12:26:02

标签: c# .net ssh

所以我试图运行一个带有一些参数的远程nodejs服务器,虽然我管理正确启动服务器但是我无法传递给下一个命令,并且应用程序在60秒超时后失败。 这是我的代码:

            SshClient ssh = new SshClient(myURL, 22, myUser, myPass);
    string unixCommand = "/usr/local/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium.js --address 127.0.0.1 --port 4723 --full-reset --device-name \"iPhone 6\" --platform-name iOS --platform-version \"8.3\" --app \"myApp.app\" --browser-name iOS -l --log /Users/QA/Library/Logs/Appium/1.log";
    {
        ssh.Connect();
        ssh.RunCommand(unixCommand);
        ssh.Disconnect();

谢谢!

0 个答案:

没有答案