Ssh dropbear connection refused

Did you checked our forum?

You would need to edit /etc/default/dropbear and restart service afterwards.

To check current port used

ss -tulpn | grep dropbear

I did a quick test and it was working ootb without issue.

root@DietPiVM:~# ss -tulpn | grep dropbear
tcp   LISTEN 0      1000         0.0.0.0:2222      0.0.0.0:*    users:(("dropbear",pid=707,fd=3))
tcp   LISTEN 0      1000            [::]:2222         [::]:*    users:(("dropbear",pid=707,fd=4))
root@DietPiVM:~#