CentOS7编译安装sshpass过程

您所在的位置:网站首页 sshpass安装包 CentOS7编译安装sshpass过程

CentOS7编译安装sshpass过程

2023-09-13 18:17| 来源: 网络整理| 查看: 265

环境说明:centos 7

cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core)

我的sshpass版本

sshpass-1.06.tar.gz

编译安装需要先下载sshpass-1.06.tar.gz软件压缩包到linux主机上然后解压

tar -xvf sshpass-1.06.tar.gz

然后查看当前目录下生成sshpass-1.06目录,切换进入

cd sshpass.1

查看当前目录下文件

ls aclocal.m4 compile config.log configure.ac INSTALL main.o Makefile.in README stamp-h1 AUTHORS config.h config.status COPYING install-sh Makefile missing sshpass ChangeLog config.h.in configure depcomp main.c Makefile.am NEWS sshpass.1

 先安装编译环境

yum -y install gcc gcc-c++ make zlib-devel pcre pcre-devel openssl-devel

  然后开始编译安装

./configure #也可以指定安装路径,我这里使用默认

make && make install

 安装成功后查看

which sshpass

/usr/local/bin/sshpass

  测试使用

sshpass -p password ssh [email protected]

  



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3