Dropbear is a software package written by Matt Johnston that provides a Secure Shell-compatible server and client. It is designed as a replacement for standard OpenSSH for environments with low memory and processor resources, such as embedded systems.
Contents
- Technology
- Features
- Installing Dropbear
Debian OS
Centos OS
Technology
Dropbear implements version 2 of the Secure Shell (SSH) protocol.
The cryptographic algorithms are implemented using third-party cryptographic libraries included internally in the Dropbear distribution. It derives some parts from OpenSSH to handle BSD-style pseudo terminals.
Features
Dropbear implements the complete SSH version 2 protocol in both the client and the server. It does not support SSH version 1 backwards-compatibility to save space and resources, and to avoid the inherent security vulnerabilities in SSH version 1. SCP is also implemented. SFTP support relies on a binary file which can be provided by OpenSSH or similar programs. FISH works in any case and is supported e.g. by Konqueror. Supports elliptic curve cryptography for key exchange and public key authentication as of version 2013.62.
Installing Dropbear
- Login ke server
- Update Server dengan mengetikkan perintah
root@host:~# apt-get update
- Install Dropbear
root@host:~# apt-get install dropbear
- Check, apakah applikasi nano sudah terinstall atau belum.
Check applikasi nanoroot@host:~# whereis nano
nano: /bin/nano /usr/bin/nano /usr/share/nano /usr/share/man/man1/nano.1.gzInstall nano
root@host:~# apt-get install nano
- Edit Config dropbear
root@host:~# nano /etc/default/dropbear
Cari dan rubah
NO_START=1
DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS=
MenjadiNO_START=0
# DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS="-p 443 -p 143"
[caption id="attachment_939" align="aligncenter" width="300"]Simpan dengan CRTL+X - Y dan SAVE (ENTER)[/caption]
Simpan dengan CRTL+X - Y dan SAVE (ENTER)
- Restart dropbear dengan mengetik perintah
root@host:~# /etc/init.d/dropbear restart
- Check, apakah dropbear sudah berjalan atau belum
root@host:~# netstat -antup | grep '143\|443'
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 367/dropbear
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 367/dropbear - Selesai
- Download & Install package untuk dropbear:
CentOS 5 32-bitroot@host:~# wget ftp://rpmfind.net/linux/epel/5/i386/dropbear-0.55-1.el5.i386.rpm
root@host:~# rpm -Uvh dropbear-0.55-1.el5.i386.rpmCentOS 5 64-bit
root@host:~# wget ftp://rpmfind.net/linux/epel/5/x86_64/dropbear-0.55-1.el5.x86_64.rpm
root@host:~# rpm -Uvh x86_64/dropbear-0.55-1.el5.x86_64.rpm
CentOS 6 32-bitroot@host:~# wget ftp://rpmfind.net/linux/epel/6/i386/dropbear-2013.62-2.el6.i686.rpm
root@host:~# wget ftp://rpmfind.net/linux/epel/6/x86_64/libtommath-0.42.0-3.el6.i686.rpm
root@host:~# wget ftp://rpmfind.net/linux/epel/6/i386/libtomcrypt-1.17-21.el6.i686.rpmINSTALL DEPENDENCIES
root@host:~# rpm -Uvh libtommath-0.42.0-3.el6.i686.rpm
root@host:~# rpm -Uvh libtomcrypt-1.17-21.el6.i686.rpm
root@host:~# rpm -Uvh dropbear-2013.62-2.el6.i686.rpmCentOS 6 64-bit
root@host:~# wget ftp://rpmfind.net/linux/epel/6/x86_64/dropbear-2013.62-2.el6.x86_64.rpm
root@host:~# wget ftp://rpmfind.net/linux/epel/6/x86_64/libtommath-0.42.0-3.el6.x86_64.rpm
root@host:~# wget ftp://rpmfind.net/linux/epel/6/x86_64/libtomcrypt-1.17-21.el6.x86_64.rpmINSTALL DEPENDENCIES
root@host:~# rpm -Uvh libtommath-0.42.0-3.el6.x86_64.rpm
root@host:~# rpm -Uvh libtomcrypt-1.17-21.el6.x86_64.rpm
root@host:~# rpm -Uvh dropbear-2013.62-2.el6.x86_64.rpm - Edit Config dropbear
root@host:~# nano /etc/init.d/dropbear
Tambah kan
OPTIONS="-p 143 -p 443"
Lihat gambar berikut agar lebih jelas
[caption id="attachment_942" align="aligncenter" width="300"]Setelah selesai simpan dengan CRTL+X - Y dan SAVE (ENTER)[/caption]
Setelah selesai simpan config tersebut dengan CRTL+X - Y dan SAVE (ENTER) - Jalankan dropbearnya
root@host:~# service dropbear start
- Jalankan auto startup dropbear
root@host:~# chkconfig --add dropbear
root@host:~# chkconfig dropbear on - Check, apakah dropbear sudah berjalan atau belum
root@host:~# netstat -antup | grep '143\|443'
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 367/dropbear
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 367/dropbear - Selesai
See also
References
- "Dropbear ChangeLog". 2014-02-19. Retrieved 2014-03-18.
- "Ubuntu Manpage: dropbear - lightweight SSH2 server". Ubuntu.com web site. Canonical, Inc. Retrieved 20 June 2011.
- Official website Dropbear implementation details
.