一:实验目的:
编译安装新版本的dropbear
二:实验过程:
1、dropbear:是一个小型的ssh服务器和客户端,所以和openssh类似,都是用于实现ssh安全远程登录协议的,系统默认安装有openssh,而dropbear是基于epel源的,需要自己下载安装,两种选择一种实现ssh即可,因为两者默认使用22端口,但若是你很想两个都用,那么就可以让其中一个不走默认端口。
2、使用yum info dropbear可查看其信息,(前提是,你需要配好epel源)
[root@localhost ~]# yum info dropbearLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfileAvailable PackagesName : dropbearArch : x86_64 Version : 2016.74 #版本信息Release : 1.el7Size : 146 kRepo : epelSummary : Lightweight SSH server and clientURL : #官网License : MITDescription : Dropbear is a relatively small SSH server and client. It's : particularly useful for "embedded"-type Linux (or other Unix) : systems, such as wireless routers.[root@localhost ~]#
现在我的版本是2016.74版,所以我们可以根据提供的官网,去找一个最新版本的dropbear;如下图所示,点击dropbear-2017.75.tar.bz2,下载。
然后将其放在桌面上(方便上传linix),如下面所示,将dropbear-2017.75.tar.bz2拷进linux的家目录下了(rz是默认拷到当前目录下的)
[root@localhost ~]# rz #执行rz命令,将dropbear-2017.75.tar.bz2拷进来rz waiting to receive.Starting zmodem transfer. Press Ctrl+C to cancel.Transferring dropbear-2017.75.tar.bz2... 100% 1585 KB 1585 KB/sec 00:00:01 0 Errors [root@localhost ~]# lsanaconda-ks.cfg Downloads initial-setup-ks.cfg Publicbin dropbear-2017.75.tar.bz2 ip.log TemplatesDesktop httpd-2.4.27 Music VideosDocuments httpd-2.4.27.tar.bz2 Pictures[root@localhost ~]#
执行tar xvf dropbear-2017.75.tar.bz2将其解压缩,生成dropbear-2017.75 的目录文件,
[root@localhost ~]# tar xvf dropbear-2017.75.tar.bz2[root@localhost ~]# cd dropbear-2017.75/ #进到目录下
看一下,README(关于dropbear的介绍)和INSTALL(编译的指南)文件;(下面是INSTALL文件)
[root@localhost ~/dropbear-2017.75]# cat INSTALL Basic Dropbear build instructions:- Edit options.h to set which features you want.- Edit debug.h if you want any debug options (not usually required).(If using a non-tarball copy, "autoconf; autoheader")./configure (optionally with --disable-zlib or --disable-syslog, #第一步 or --help for other options)Now compile:make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" #第二步And instal