nano /etc/ssh/sshd_configNano harus sudah terinstal, kalo belum silahkan install dahulu.
Install Nano di Debian / Ubuntu
sudo apt-get install nano
Install Nano di Centos
yum install nanoLanjut lagi di sshd_config
Hapus tulisan Port 443
Save+Exit (ctrl X+Y Enter)
Restart Openssh
Debian/Ubuntu:Install Dropbear pada Debian/Ubuntu
service ssh restart
CentOS:
/etc/init.d/sshd restart
atau
service sshd restart
1. Install Dropbear
apt-get update2. Tambah Port Dropbear
apt-get install dropbear
nano /etc/default/dropbearEdit pada bagian ini:
NO_START=1
DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS=
Edit Menjadi seperti ini:
NO_START=0
DROPBEAR_PORT=443
DROPBEAR_EXTRA_ARGS="-p 443"3. Start Dropbear
service drobear start4. Cek Port Dropbear
service drobear restart
netstat -nlpt | grep dropbearInstall Dropbear pada CentOS
Untuk menginstall dropbear pada vps CentOS, silahkan masukan perintah command di bawah ini sesuai dengan OS server vps anda.
Untuk CentOS 5_32bit
cd /usr/local/srcUntuk CentOS 5_64bit
wget http://dl.fedoraproject.org/pub/epel/5/i386/dropbear-0.55-1.el5.i386.rpm
rpm -Uvh dropbear-0.55-1.el5.i386.rpm
yum -y install dropbear
cd /usr/local/srcUntuk CentOS 6_32bit
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/dropbear-0.55-1.el5.x86_64.rpm
rpm -Uvh dropbear-0.55-1.el5.x86_64.rpm
yum -y install dropbear
cd /usr/local/srcUntuk CentOS 6_64bit
wget http://dl.fedoraproject.org/pub/epel/6/i386/dropbear-0.58-1.el6.i686.rpm
rpm -Uvh dropbear-0.58-1.el6.i686.rpm
yum -y install dropbear
cd /usr/local/srcUntuk CentOS 6_64bit
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/dropbear-0.58-1.el6.x86_64.rpm
rpm -Uvh dropbear-0.58-1.el6.x86_64.rpm
yum -y install dropbear
cd /usr/local/srcTambah Port Dropbear
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/dropbear-0.58-1.el6.x86_64.rpm
rpm -Uvh dropbear-0.58-1.el6.x86_64.rpm
yum -y install dropbear
nano /etc/init.d/dropbearPort sisipkan dibawah:
PID_FILE=/var/run/dropbear.pidTambah menjadi:
PID_FILE=/var/run/dropbear.pidStart Dropbear
OPTIONS="-p 443"
service dropbear startDropbear auto start:
chkconfig dropbear onRestart dropbear:
service dropbear restartCek Port Dropbear
netstat -nlpt | grep dropbearSelesai. Silahkan, anda sudah bisa menikmati SSH di VPS sendiri. Semoga post Setting SSH di VPS ini mudah di pahami.
0 comments:
Post a Comment