编译安装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

相关推荐

  • 18文本处理工具sed

    18文本处理工具sed     sed,全称Stream EDitor,是一种流编辑器,它一次处理一行内容,但是它构思巧妙,功能强大,是运维工作中必不可少的文本处理工具,也是因为这样,被称作文本处理三剑客之一。     sed在处理时,把当前处理的行李存储在临时缓冲区中,这个区域被称作“模式空间pa…

    Linux干货 2016-08-12
  • linux查找命令locate、find

    本次博主来介绍下超实用的查找命令,没有查不到,只有做不到。 直接上干货:查找命令:locate和find,常用find,我们重点介绍find locate 通过查询系统上预建的文件索引数据库全盘查找所需文件,locate是透过update程序将硬盘中的所有档案和目录资料先建立一个索引数据库,在执行loacte时直接找该索引,查询速度会较快,索引的构建是在系统…

    2017-08-12
  • 马哥教育网络班22期+第3周课程练习

    1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登陆多次,则只显示一次即可。     who | cut -d' ' -f1 | sort -u 2、取出最后登录到当前系统的用户的相关信息。     who | sort -t' ' -k4 | …

    Linux干货 2016-08-29
  • linux 网络管理命令 SS的使用详则

    SS命令 ss命令用来显示处于活动状态的套接字信息,ss迷路可以用来获取socket统计信息,它可以显示和netstat类似的内容。但ss的优势在于它能够显示更多更详细的有关TCO和连接状态信息,而且比netstat更快速更高效。 当服务器的socket连接数量变得非常大时,无论是使用netest命令还是直接  cat/proc/net/tcp 。…

    2017-08-19
  • N22-第七周作业

    1、创建一个10G分区,并格式为ext4文件系统;    (1) 要求其block大小为2048, 预留空间百分比为2, 卷标为MYDATA, 默认挂载属性包含acl;    (2) 挂载至/data/mydata目录,要求挂载时禁止程序自动运行,且不更新文件的访问时间戳; 创建一个10G的分区:  &nbs…

    Linux干货 2016-12-18
  • 虚拟网卡实验:网卡别名 与 bond多网卡模式

     一、网卡别名:多IP 绑定一个 Interface         将多个IP地址绑定到一个NIC上            网卡别名:    &n…

    Linux干货 2016-09-05