编译安装dropbear
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译安装dropbear相关的知识,希望对你有一定的参考价值。
dropbear介绍:
Dropbear是一个相对较小的SSH服务器和客户端。
编译安装dropbear
[[email protected] ~]# tar xf dropbear-2013.58.tar.bz2 [[email protected] ~]# cd dropbear-2013.58 [[email protected] dropbear-2013.58]# cat INSTALL [[email protected] dropbear-2013.58]# ./configure --prefix=/usr/local/shiyan/ --sysconfdir=/etc/dropbear.conf //报错如下
猜想我们可以没有安装zlib包 [[email protected] dropbear-2013.58]# rpm -q zlib zlib-1.2.3-29.el6.x86_64 //包存在 我们可以猜想,由于是源码安装所以可以缺少的是开发包zlib-devel [[email protected] dropbear-2013.58]# yum list all | grep "zlib-devel" zlib-devel.x86_64 1.2.3-29.el6 base //存在该包且我们没有安装 安装zlib-devel [[email protected] dropbear-2013.58]# yum -y install zlib-devel.x86_64 [[email protected] dropbear-2013.58]# ./configure --prefix=/usr/local/shiyan/ --sysconfdir=/etc/dropbear.conf [[email protected] dropbear-2013.58]# make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" [[email protected] dropbear-2013.58]# make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install // 根据源码包中INSTALL中定义的 [[email protected] dropbear-2013.58]# ls /usr/local/shiyan/ bin sbin [[email protected] dropbear-2013.58]# vim /etc/profile.d/dropbear.sh [[email protected] dropbear-2013.58]# . /etc/profile.d/dropbear.sh [[email protected] dropbear-2013.58]# cat README
由此可见运行服务需要生成服务器钥匙
[[email protected] dropbear-2013.58]# dropbearkey -t dss -f /tmp/dropbear_dss_host_key [[email protected] dropbear-2013.58]# dropbearkey -t rsa -f /tmp/dropbear_rsa_host_key [[email protected] dropbear-2013.58]# cd /usr/local/shiyan/ [[email protected] shiyan]# ls bin sbin
测试启动
[[email protected] ~]# dropbear -h [[email protected] ~]# dropbear -d /tmp/dropbear_dss_host_key -r /tmp/dropbear_rsa_host_key -p :12345
测试连接:
[[email protected] ~]# dbclient -p 12345 [email protected]
本文出自 “似水流年” 博客,请务必保留此出处http://sixijie123.blog.51cto.com/11880770/1880118
以上是关于编译安装dropbear的主要内容,如果未能解决你的问题,请参考以下文章