How to change TCP port for SSH connection

Hi,

I would like to change TCP port for SSH connection.
Default port is 22.

I notice that there is dropbear on R13.3 package.
I tried changing port using “-p” command, but it cannot connect WP by new port.
Another way, I modified “DROPBEAR_PORT=22” on “/etc/init.d/dropbear” but the result is same.

How to solve it?

BR,
Tanoue

Hi Tanoue,
Maybe the firewall/iptables issue, have you modify the iptables rule? i.e.

iptables -A INPUT -p tcp --dport < port > -j ACCEPT

Thx