咱们都知道,sshpass 是用于非交互的ssh 密码验证,在脚本中进行ssh或者scp时,是很是好用的一个工具,在centos7中是如何安装的呢?centos
先安装epelssh
yum install -y epel-release工具
yum repolistcentos7
安装完成epel以后,就能够按照sshpass了spa
yum install -y sshpassit
安装完成以后,sshpass –V, 就能够正常使用了。密码