A Linux Playground

My doodles and what I get up to.

Change Initramfs Dropbear Port

Dropbear default

After installing and configuring dropbear to be included into a boot image it will start on the default ssh port of 22.

Changing the default

To start dropbear using a different port you need to edit one of the scripts included in the boot image. Append the line “/sbin/dropbear” with the “-p” flag and the port number you want to run it on.

/usr/share/initramfs-tools/scripts/init-premount/dropbear

1
/sbin/dropbear -p 55