编译安装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
下一篇 2016-09-28

相关推荐

  • ​Linux基础知识之磁盘及文件系统管理(一)

    1.设备类型:     块设备(block):随机访问,数据交换单位是"块"     字符设备(character):线性访问,数据交换的单位是"字符" 2.设备文件:FHS     /dev &nb…

    Linux干货 2016-08-29
  • N26 第五周作业

    1、显示/boot/grub/grub.conf中以至少一个空白字符开头的行; [root@localhost ~]# cat /boot/grub/grub.conf | grep "^[[:space:]]" 2、显示/etc/rc.d/rc.sysinit文件中以#开头,后…

    Linux干货 2017-01-26
  • centos7上实现LAMP,并搭建wordpress

    实验:LAMP的架构,并搭建wordpress              1、准备环境,                      #mkdir src    …

    2017-08-07
  • 系统基础之shell脚本编程详解4(数组及字符串处理,变量赋值和配置文件)

    系统基础之shell脚本编程详解4(数组及字符串处理,变量赋值和配置文件)     今天来讲shell脚本编程的最后一些内容,数组及字符串处理,变量赋值和配置文件.这些内容也是我们经常在工作中使用到的知识点.下面让我们来详细了解下: 数组:   程序=指令+数据        &…

    Linux干货 2016-08-24
  • 阿里云修改hostname主机名的一点小技巧

    CentOS 7以后修改主机名一般使用: hostnamectl set-hostname newhostname 如果仍然无效,使用vim打开/etc/cloud/cloud.cfg,将 preserve_hostname=fale 改为 preserve_hostname=true 即可。 以上在阿里云ECS上亲测有效,使用了网上查阅…

    Linux干货 2017-01-09
  • N22第二周作业

    1.Linux上文件管理类命令有哪些,其常用的使用方法及其相关示列演示。  常用文件管理类命令有:cp, mv ,rm. (1)cp:copy (2)mv:move (3) rm:remove   2、bash的工作特性之命令执行状态返回值和命令行展开所涉及的内容及其示例演示 3、请使用命令行展开功能来完成以下练习:   &nb…

    Linux干货 2016-08-22