Cara Mengganti dan menambah Port Dropbear Debian 7
- Login to each server using bitvise / putty. Make sure the nano text editor is installed. If nano text editor has not been installed, type
apt-get -y install nano - Go to step 2 by typing
nano /etc/default/dropbear - You will find more or less like this:
# disabled because OpenSSH is installed
# change to NO_START=0 to enable Dropbear
NO_START=0# the TCP port that Dropbear listens on
DROPBEAR_PORT=443# any additional arguments for Dropbear
DROPBEAR_EXTRA_ARGS="-p 109 -p 110"
# specify an optional banner file containing a message to be
# sent to clients before they connect, such as "/etc/issue.net"
DROPBEAR_BANNER="/etc/issue.net"
# RSA hostkey file (default: /etc/dropbear/dropbear_rsa_host_key)
#DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key"
# DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key)
#DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key"
# Receive window size - this is a tradeoff between memory and
# network performance
DROPBEAR_RECEIVE_WINDOW=65536 - Notice the text DROPBEAR_PORT = 443. The port indicates that the main port dropbear is running on port 443. If you want to change the port dropbear to another port, you just need to change the number 443 to the number you want. (Suppose you want dropbear to run on port 80, then you should change the text DROPBEAR_PORT = 443 to DROPBEAR_PORT = 80.
- Take note of DROPBEAR_EXTRA_ARGS = "- p 109 -p 110". The text shows that the dropbear also runs on ports 109 and 110 in addition to running on the main port.
If you do not want dropbear to run on that port, just delete the post inside quotation marks. Example: you just want the dropbear to run only on port 80 that has been set in the main port, then you should replace the DROPBEAR_EXTRA_ARGS = "- p 109 -p 110" to DROPBEAR_EXTRA_ARGS = "".
If you want dropbear to run on ports other than 109, and 110, then you have to add the -p [port-number] argument. Example: you just want dropbear to run on port 80 (main port), port 109, port 110, port 443, port 22507. then you should replace DROPBEAR_EXTRA_ARGS = "- p 109 -p 110" to DROPBEAR_EXTRA_ARGS = "- p 109 - p 110 -p 443 - When done, press CTRL + X and then type Y and then press enter.
- Do not forget to restart the dropbear server by typing
/etc/init.d/dropbear restart - Check whether the dropbear has been running in the desired port by typing
netstat -ntulp | grep dropbear .
You will see on what port the dropbear is running.
So how to replace and add the dropbear port in debian 7. Hope this tutorial can help meet your needs. If you have any questions about how to change the dropbear port in debian 7, please ask in the comment field below ...
Send regards for Success
~ Team kallongnet
[…] dropbear. solusinya anda harus hapus/ganti port 443 yang ada di dropbear, silahkan bisa di baca di artikel ini Akan tetapi jika setelah perintah itu dimasukkan, tidak keluar tulisan apapun, berarti port […]
BalasHapus