![](/img/trans.png)
[英]Using Net::SSH Ruby library to remote command execution that requires sudo su - another user
[英]ssh remote execution: can't load library
我正在尝试从 PC-B 上的 PC-A 执行 ssh 命令。 它们都是基于 Unix 的。
每当我输入命令“ ssh root@192.168.1.213 /path/to/x.sh
”时,我都会收到此ssh 错误,并显示错误消息“ can't load library libimp.so
”。
不过,单独输入命令确实有效。 (1. 输入ssh root@192.168.1.213
[Return] 和 2. /path/to/x.sh
[Return])
我错过了什么吗?
我尝试搜索 web 但我没有得到任何结果。
先感谢您。
根据您的机器使用sh
或bash
。
ssh root@192.168.1.213 bash /path/to/x.sh
或者
ssh root@192.168.1.213 sh /path/to/x.sh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.