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

相关推荐

  • God进程监控框架

    监控重启进程的方案有很多种: 最简单的方法,写个脚本fork进程运行,然后waitpid,如果获pid后就再次启动 最土的方法,配置cron任务,固定时间运行脚本检查进程是否存在,不存在则启动 百度使用qmail里的supervised程序,通过supervised监管进程。 优点:supervised可以启动daemon程序,对于非daemon需要采用no…

    Linux干货 2015-02-13
  • SQL优化大全

    1. 优化SQL步骤 1. 通过 show status和应用特点了解各种 SQL的执行频率        通过 SHOW STATUS 可以提供服务器状态信息,也可以使用 mysqladmin extende d-status 命令获得。 SHOW STATUS 可以根据需要显示 session 级别的统计结果和 g…

    Linux干货 2015-04-13
  • Linux系统结构 详解

    Linux系统一般有4个主要部分: 内核、shell、文件系统和应用程序。内核、shell和文件系统一起形成了基本的操作系统结构,它们使得用户可以运行程序、管理文件并使用系统。部分层次结构如图1-1所示。  1. linux内核         内核是操作系统的核心,具有很多最基本功能,它负责管理系…

    Linux干货 2015-04-13
  • grub知识与故障排除

    知识点回顾 at 任务的存放位置:/var/spool/at/ crond 任务存放位置:/var/spool/cron/username 查看服务有没有运行 centos6:  service  atd  status    chkconfig –list atd chkconfig atd o…

    Linux干货 2016-09-13
  • LVS

    一 LVS工作原理 1. lvs-nat模型 lvs-nat:多目标的DNAT, 通过将请求报文中的目标地址和目标端口修改为挑选出的某RS的RIP和PORT 实现转发。 (1) RIP和DIP必须在同一IP网络,且应该使用私有地址,RS的网络要指向DIP(保证响应报文必须由VS); (2) 请求报文和响应报文都经由Director转发,较…

    Linux干货 2016-12-06
  • 第一周n28

    1.计算机的组成及功能 计算机由五大部件组成。控制器、运算器、存储器、输入输出设备。 1.控制器(Control):是整个计算机的中枢神经,其功能是对程序规定的控制信息进行解释,根据其要求进行控制,调度程序、数据、地址,协调计算机各部分工作及内存与外设的访问等。 2.运算器(Datapath):运算器的功能是对数据进行各种算术运算和逻辑运算,即对数据进行加工…

    Linux干货 2017-12-03