【发布时间】:2019-07-31 16:34:00
【问题描述】:
在 CentOS release 6.3 (Final) 系统上工作。并尝试使用sshpass 等实用程序 ssh 另一台机器
sshpass -p 'password' ssh user@host
但它给了我类似的错误
sshpass: Failed to run command: No such file or directory
所以从错误中我认为sshpass 可能没有安装,所以尝试通过yum install sshpass 安装它并获取以下日志
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.leapswitch.com
* epel: epel.mirror.net.in
* extras: mirror.leapswitch.com
* nux-libreoffice.org-rpms: mirror.li.nux.ro
* updates: mirror.leapswitch.com
Setting up Install Process
Package sshpass-1.05-1.el6.i686 already installed and latest version
Nothing to do
从上面看来 sshpass 已经安装了。为什么它不起作用?
【问题讨论】: