編譯安裝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.www58058.com/49648

(2)
sixijiesixijie
上一篇 2016-09-28 20:54
下一篇 2016-09-28 21:01

相關推薦

  • 一種強大的新型BIOS Bootkit病毒曝光

    近日,安全研究人員開發出一種新的BIOS bootkit,它可以竊取敏感數據,以及流行操作系統使用的PGP密鑰。包括華碩、惠普、宏基、技嘉以及微星等在內的各大供應商的主板都受到該病毒影響。 BIOS bootkits是真實存在的。斯諾登在披露NSA ANT部門使用的監視工具集時,曾提到過BIOS bootkits。這些惡意軟件能夠入侵受害機器的BIOS,以此…

    2015-03-23
  • Linux基礎命令之文本命令

    關于文本的命令:     1.文件查看命令:        a.cat:查看文件,實現參數給的內容一個個顯示出來            -n:顯示行號(顯示的空行的行號)          …

    Linux干貨 2016-08-07
  • 馬哥教育網絡班22期第1周課程作業

    一、基礎中的基礎————–計算機的組成部分         計算機組成分為硬件系統與軟件系統         硬件包括五個部分     1.控制器:控制器 I/O 存儲器 &nbs…

    Linux干貨 2016-08-15
  • Linux 基礎入門(第一周)

    計算機組成,Linux發行版本,Linux基礎命令

    Linux干貨 2017-12-03
  • 馬哥教育網絡班22期+第7周課程練習 忍者亂太郎喻成

    第七周 1、創建一個10G分區,并格式為ext4文件系統;   (1) 要求其block大小為2048, 預留空間百分比為2, 卷標為MYDATA, 默認掛載屬性包含acl;    我個人比較喜歡使用交互式的分區工具fdisk    我以fdisk為例: &n…

    Linux干貨 2016-11-21
  • linux基礎學習之AWK

    內容: 1、awk輸出(print、printf) 2、awk變量(內建變量和定義變量) 3、awk數組 4、awk重定向輸出 5、awk操作符 6、awk常見模式類型 7、awk控制及循環語句 8、awk內置函數 awk:(其名稱得自于它的創始人 Alfred Aho 、Peter Weinberger 和 Brian Kernighan 姓氏的首個字母)…

    Linux干貨 2016-09-22
欧美性久久久久