Download Packge untuk Dropbearnya.
CentOS 5 64 Bit
wget ftp://rpmfind.net/linux/epel/5/x86_64/dropbear-0.55-1.el5.x86_64.rpm
CentOS 5 32 Bit
wget ftp://rpmfind.net/linux/epel/5/i386/dropbear-0.55-1.el5.i386.rpm
Kemudian install RPMnya.
rpm -Uvh *.rpm
*.rpm = nama file yang ingin diinstall. contoh : rpm -Uvh dropbear-0.55-1.el5.x86_64.rpmCentOS 6 64 Bit
wget ftp://rpmfind.net/linux/epel/6/x86_64/dropbear-2013.62-2.el6.x86_64.rpm
INSTALL DEPENDENCIES
wget ftp://rpmfind.net/linux/epel/6/x86_64/libtommath-0.42.0-3.el6.x86_64.rpm
rpm -Uvh libtommath*.rpm
wget ftp://rpmfind.net/linux/epel/6/x86_64/libtomcrypt-1.17-21.el6.x86_64.rpm
rpm -Uvh libtomcrypt*.rpm
rpm -Uvh dropbear*.rpm
CentOS 6 32 Bit
wget ftp://rpmfind.net/linux/epel/6/i386/dropbear-2013.62-2.el6.i686.rpm
INSTALL DEPENDENCIES
wget ftp://rpmfind.net/linux/epel/6/x86_64/libtommath-0.42.0-3.el6.i686.rpm
rpm -Uvh libtommath*.rpm
wget ftp://rpmfind.net/linux/epel/6/i386/libtomcrypt-1.17-21.el6.i686.rpm
rpm -Uvh libtomcrypt*.rpm
rpm -Uvh dropbear*.rpm
Dropbear sudah terinstall, sekarang masuk ke config dropbear.nano /etc/init.d/dropbeartamabahkan :
OPTIONS="-p 22 -p 109 -p 143 -p 443"
Setelah itu tekan CTRL+X - Y dan SAVE (Enter).Ganti Port SSHnya.
nano /etc/ssh/sshd_config
#Port 22 ==> rubah jadi Port 333 (tanpa tanda #)
Ctrl+X - Y - Enter (save)
service sshd restart
Jalankan Dropbearnya.
service dropbear start
Jalankan auto stratup dropbear.
hkconfig --add dropbear
chkconfig dropbear on
Atau bisa juga via Webmin.Disini Dropbear sudah berjalan di CentOS kalian.
- login ke webmin
- system
- bootup and shutdown
- centang dropbear ( start on boot) atau (start now and on boot)
yum -y service dropbear reload
Jika gagal
yum -y remove dropbear
Ulangi Langka-langkah diatas.Cara membuat user.
useradd -m -s /sbin/nologin namauser
tapi bagaimana jika user sudah dimasukan atau sudah ada user dengan shell:/bin/false
caranya dengan memodif sedikit shell.
cat "/bin/false" >> /etc/shells
Thanks to : groundmans
No comments:
Post a Comment