Dropbear Port Change

Hi,

I would like to change the default port from 22 to 3389. Does anyone know which file needs to be edited to achieve this?

Any help would be greatly appreciated.

I would like to know this too. Anyone?

Why are you trying to change the default port to the RDP port? Is it to get through a firewall or something?

I would like to make my server more secure by not using the typical port 22.

I see. Sorry I don’t know the answer to your question.

Two things:

  1. Changing the port from one very well known port to another very well known port won’t increase the security of your server. I suggest you pick a port that is not used for anything else.

  2. The default port for dropbear is 22, but you can specify the port in the the file /etc/init.d/enable_dropbear
    The last line of that file starts dropbear, and instead of “/sbin/dropbear” you probably want something like “/sbin/dropbear -p xxxxx” (replace the xxxxx by the port number)

Be careful while editing that file, though, as making a mistake there could easily prevent dropbear from starting.

Thx very much!