For those of you who didn’t know, Dropbear is a relatively small SSH server and client. It runs on a variety of POSIX-based platforms. Dropbear is open source software, distributed under a MIT-style license. Dropbear is particularly useful for “embedded”-type Linux (or other Unix) systems, such as wireless routers.
This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step replacing Dropbear SSH in CentOS server.
Replacing OpenSSH With Dropbear on CentOS
To install, first you must add the yum repository information corresponding to your CentOS/RHEL version to yum:
For CentOS 6.x use:
#rpm -Uvh dropbear-0.58-1.el6.i686.rpm
#rpm -Uvh dropbear-0.55-1.el5.i386.rpm
#yum install dropbear
#OPTIONS=" -p 222"
Add dropbear to startup and start the sever:
#chkconfig dropbear on
#service dropbear start
Next you can stop the current OpenSSH server:
#yum remove openssh-server
Note: Make sure you check that it is indeed running and verify from another box before you logout your current session otherwise.
Congratulation’s! You have successfully installed Dropbear. Thanks for using this tutorial for installing Dropbear SSH in CentOS system. For additional help or useful information, we recommend you to check the official Dropbear web site.