编译安装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入门之计算机组成及其功能

    计算机基础以及Linux基础

    2018-03-06
  • CentOS6.7上编译安装Apache2.2和Apache2.4

    centos6.7上如何编译安装Apache2.2和Apache2.4

    Linux干货 2016-05-29
  • mysql备份之xtrabackup

    mysql备份之xtrabackup(建议用来备份innodb) 下载地址:https://www.percona.com/downloads/XtraBackup/ 安装xtrabackup [root@node1 ~]# yum install percona-xtrabackup 完全备份 节点一 修改配置文件,…

    Linux干货 2016-07-19
  • 计算机组成及功能简介

    计算机(computer)       当今它已经走进千家万户,应用在各个领域,没有用过计算机的朋友应该很少了吧?但是,你真正了解计算机是什么吗?(我也是刚刚了解的,(*^__^*)嘻嘻……)那么,接下来,让我们一起探究一下它的具体构造吧!       所谓的计算机就是…

    Linux干货 2016-10-25
  • 数据库

    数据库系统理论概述(一) –本文主要讲述: – 1.数据库和数据库管理系统 – 2.使用传统的文件系统对大量数据管理存在的问题 – 3.常见的数据库系统模型 – 4.数据库视图 – 5.数…

    Linux干货 2016-10-30
  • Linux用户管理相关

    Q1列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。 [root@radio_freshman ~]# who root     tty1         201…

    Linux干货 2016-11-13