you must install the sshpass program 解决方式
来源:互联网 发布:淘宝图防盗图怎么设置 编辑:程序博客网 时间:2024/05/22 02:12
安装完ansible之后,使用的时候发生如下错误:
ansible 192.168.1.2 -i ./hosts -m shell -a "date"192.168.1.2 | FAILED => to use the 'ssh' connection type with passwords, you must install the sshpass program
只需要安装sshpass即可,CentOS系统的默认yum源里面并没有这个软件,网上有资料说搜狐的yum源里面有,有需要的读者可以自行查阅。
这里给出sshpass的源码安装方式:
$ wget http://sourceforge.net/projects/sshpass/files/latest/download -O sshpass.tar.gz $ tar -xvf sshpass.tar.gz $ cd sshpass-1.06 $ ./configure $ sudo make install
本文参考内容: sshpass:一个很棒的免交互SSH登录工具,这篇文章里面有sshpass比较详细的介绍和使用方法。
阅读全文
0 0
- you must install the sshpass program 解决方式
- you must have accepted the latest version of the IOS Developer Program Agreement
- You need to install the perl-doc package to use this program.
- The program 'unzip' is currently not installed. You can install it by typing:
- ubuntu16.04 出现The program 'rpm' is currently not installed. You can install it by typing
- ubuntu16.04 出现The program 'rpm' is currently not installed. You can install it by typing
- Server 2008 R2: “You must use the Role Management Tool to install or configure Microsoft .NET”
- Server 2008 R2: “You must use the Role Management Tool to install or configure Microsoft .NET”
- You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5
- 安装sql2000: 出现 A previous program installation created pending file operations on the installation machine. You must restart the
- The program 'rz' is currently not installed. You can install it by typing: apt-get install lrzsz
- Windows 2008 R2上安装Visual Studio 2008:you must use the role management tool to install configure .net
- ORACLE EBS出现In order to access this application, you must install the J2SE Plugin version 1.6.0_07.
- 关于异常“The specified child already has a parent. You must call removeView"的解决
- Android关于You must call removeView() on the child's parent first的解决
- 针对Error: You must either define the environment variable DJANGO_SETTINGS_MODULE ...问题的解决
- mount: you must specify the filesystem type
- mount: you must specify the filesystem type
- SQL新手新手向修炼(2)
- 自定义时间轴控件
- tomcat,Jboss,weblogic区别与比较
- 栈和队列:滑动窗口和数组变树问题
- EL表达式函数总结
- you must install the sshpass program 解决方式
- nhmicro添加合同模板管理功能
- OpenCV自学笔记18. 基于SVM和神经网络的车牌识别(二)
- Myeclipse出现:Could not create the view: An unexpected exception was thrown.
- Max导入Sketchup单位不一致的设置
- java 导出excel文件设置宽度高度自适应
- 计算学习理论基础
- 在windows平台下MySql启动时的1067错误的解决方法及反思
- 595. Big Countries