在 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 已经安装了。那么为什么它不工作呢?