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