CentOS7编译安装sshpass过程 |
您所在的位置:网站首页 › sshpass安装包 › CentOS7编译安装sshpass过程 |
环境说明: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 |