Huawei Cloud EulerOS上安装sshpass

下载源码

git clone https://github.com/kevinburke/sshpass.git

由于网络问题,这里我用了一个代理下载

git clone https://ghproxy.cn/https://github.com/kevinburke/sshpass.git

安装依赖包

sudo yum install make gcc pam-devel openssl-devel  automake autoconf m4 perl -y

编译安装

进入 sshpass 源代码目录,初始化 Autotools 环境。

cd sshpass

autoreconf --install

进行编译安装

./configure

make && make install 

验证 sshpass 是否正确安装:

sshpass -V
posted @ 2025-01-07 22:27  牛奔  阅读(146)  评论(0)    收藏  举报