Dropbear Secure Shell

screen_shot_sshDropbear 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



  1. Technology

  2. Features

  3. 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


Debian OS 32bit dan 64bit



  1. Login ke server

  2. Update Server dengan mengetikkan perintah
    root@host:~# apt-get update


  3. Install Dropbear
    root@host:~# apt-get install dropbear


  4. Check, apakah applikasi nano sudah terinstall atau belum.
    Check applikasi nano
    root@host:~# whereis nano
    nano: /bin/nano /usr/bin/nano /usr/share/nano /usr/share/man/man1/nano.1.gz

    Install nano


    root@host:~# apt-get install nano


  5. Edit Config dropbear
    root@host:~# nano /etc/default/dropbear

    Cari dan rubah


    NO_START=1
    DROPBEAR_PORT=22
    DROPBEAR_EXTRA_ARGS=

     
    Menjadi


    NO_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) Simpan dengan CRTL+X - Y dan SAVE (ENTER)[/caption]

    Simpan dengan  CRTL+X - Y dan SAVE (ENTER)



  6. Restart dropbear dengan mengetik perintah
    root@host:~# /etc/init.d/dropbear restart

     



  7. 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


  8. Selesai


 


CentOS 5 dan 6



  1. Download & Install package untuk dropbear:
    CentOS 5 32-bit
    root@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.rpm

     CentOS 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-bit


    root@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.rpm

     INSTALL 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.rpm

     CentOS 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.rpm

     INSTALL 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

     



  2. 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) Setelah selesai simpan dengan CRTL+X - Y dan SAVE (ENTER)[/caption]

    Setelah selesai simpan config tersebut dengan  CRTL+X - Y dan SAVE (ENTER)

  3. Jalankan dropbearnya

    root@host:~# service dropbear start


  4. Jalankan auto startup dropbear

    root@host:~# chkconfig --add dropbear
    root@host:~# chkconfig dropbear on


  5. 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


  6. Selesai


 


See also



 


References



  1. "Dropbear ChangeLog". 2014-02-19. Retrieved 2014-03-18.

  2. "Ubuntu Manpage: dropbear - lightweight SSH2 server". Ubuntu.com web site. Canonical, Inc. Retrieved 20 June 2011.

  3. Official website Dropbear implementation details


 


 


.

Share this

Related Posts

Previous
Next Post »