阅读背景:

ruby在远程计算机上运行命令

来源:互联网 

I'm trying to run commands remotely with ruby's net ssh. I need the output as well as the exit code. There are other stackoverflow threads on this topic but the accepted solutions do not work. Some people suggested using net-ssh-shell gem but as I tried it, I got an error saying that this package is in conflict with the version of my net-ssh package... Here is what I have:I'm trying to run commands remotely with ruby's




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: