编译安装dropbear

ssh协议的另一个实现:dropbear

编译安装dropbear

[root@centos6 ~]# tar xf dropbear-2013.58.tar.bz2 
[root@centos6 ~]# cd dropbear-2013.58
[root@centos6 dropbear-2013.58]# cat INSTALL
[root@centos6 dropbear-2013.58]# ./configure --prefix=/usr/local/shiyan/ --sysconfdir=/etc/dropbear.conf 

//报错如下

编译安装dropbear

猜想我们可以没有安装zlib包
[root@centos6 dropbear-2013.58]# rpm -q zlib
zlib-1.2.3-29.el6.x86_64 //包存在

我们可以猜想,由于是源码安装所以可以缺少的是开发包zlib-devel
[root@centos6 dropbear-2013.58]# yum list all | grep "zlib-devel"
zlib-devel.x86_64    1.2.3-29.el6     base  //存在该包且我们没有安装

安装zlib-devel
[root@centos6 dropbear-2013.58]# yum -y install zlib-devel.x86_64
[root@centos6 dropbear-2013.58]# ./configure --prefix=/usr/local/shiyan/ --sysconfdir=/etc/dropbear.conf

[root@centos6 dropbear-2013.58]# make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
[root@centos6 dropbear-2013.58]# make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install
// 根据源码包中INSTALL中定义的

[root@centos6 dropbear-2013.58]# ls /usr/local/shiyan/
bin  sbin

[root@centos6 dropbear-2013.58]# vim /etc/profile.d/dropbear.sh
[root@centos6 dropbear-2013.58]# . /etc/profile.d/dropbear.sh
[root@centos6 dropbear-2013.58]# cat README

编译安装dropbear

由此可见运行服务需要生成服务器钥匙

[root@centos6 dropbear-2013.58]# dropbearkey -t dss -f /tmp/dropbear_dss_host_key
[root@centos6 dropbear-2013.58]# dropbearkey -t rsa -f /tmp/dropbear_rsa_host_key

[root@centos6 dropbear-2013.58]# cd /usr/local/shiyan/
[root@centos6 shiyan]# ls
bin  sbin

测试启动

[root@centos6 ~]#  dropbear -h
[root@centos6 ~]# dropbear -d /tmp/dropbear_dss_host_key -r /tmp/dropbear_rsa_host_key -p :12345

编译安装dropbear

测试连接:

[root@centos6 ~]# dbclient -p 12345 root@127.0.0.1

编译安装dropbear

原创文章,作者:sixijie,如若转载,请注明出处:http://www.178linux.com/49648

赞 (2)
sixijiesixijie
上一篇 2016-09-28 20:54
下一篇 2016-09-28 21:01

相关推荐

  • Linux磁盘管理

    面对一块硬盘,我们该如何使用它呢?本文从机械硬盘结构,分区,格式化,和挂载四个层次进行介绍。 一、机械硬盘结构 现在服务器使用机械式硬盘是主流,因为其造价低,容量大,和固态硬盘相比读写性能要差很多。机械硬盘主要由以下几个部件构成:转轴Spindle,盘片Platter,机械臂Boom,磁头Head。工作机制是马达带动盘片高速旋转,磁头对盘片进行擦写数据或读取…

    Linux干货 2016-09-01
  • LAMP组合的编译安装(apache2.4+mariadb5.5+php5.6)

    安装次序 httpd, MariaDB, php 安装apache2.4 [root@root ~]# yum groupinstall "Development Tools" "Server Platform Develoment "&n…

    Linux干货 2016-06-29
  • shell脚本终结篇——数组

    数组定义: 变量:存储单个元素的内存空间 数组:存储多个元素的连续的内存空间,相当于多个变量的集合 数组名和索引: 索引:编号从0开始,属于数值索引 注意:索引可支持使用自定义的格式,而不仅仅是数值格式,自定义格式的数组即为关联数组,bash4.0版本之后开始支持 bash的数组支持稀疏格式(索引不连续) 声明数组: declare -a ARRAY_NAM…

    Linux干货 2016-08-24
  • 自制一个小型Linux(附带网络功能)

      我们这次讲述一下Linux启动的启动流程以及制作一个附带网络功能的mini linux 一、叙述 二、为什么要制作这么一个小型的系统 三、怎么制作 1、制作步骤 2、将虚拟机添加网络功能 一、叙述   在制作一个小型的Linux之前,首先你得明白Linux系统的启动过程,我们用一张图来进行说明  二、为什…

    Linux干货 2016-12-21
  • find命令详解

    写在前面,命令总览: 文件名:-name  -iname   glob     从属关系: -user  -group  -uid  –gid  -nouser  -nogroup 按类型:-type []  ,f,d,l,b,c…

    Linux干货 2016-02-14
  • 网络班N_27第三周作业

    1、   列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。 [root@localhost ~]# who |cut-d” ” -f1 | sort -u 2、   取出左后登录到当前系统的用户的相关信息。 [root@localhost ~]# id `l…

    2017-08-11