Same here ... I installed Armbian_24.5.1_Odroidxu4_bookworm_current_6.6.31_minimal.img today, along with a few other tools I regularly use:
root@odroidxu4:~#
grep "Port " /etc/ssh/sshd_config
#Port 22
Port 61022
root@odroidxu4:~#
systemctl restart ssh
root@odroidxu4:~#
systemctl status ssh | grep listening
Jun 10 23:03:06 odroidxu4 sshd[1309]: Server listening on :: port 22.
root@odroidxu4:~#
lsof -nPi | grep ssh | grep -v grep
sshd 1149 root 4u IPv6 16682 0t0 TCP 192.168.1.6:22->192.168.1.53:42810 (ESTABLISHED)
sshd 1309 root 3u IPv6 7753 0t0 TCP *:22 (LISTEN)
How to effectively change sshd port with newest Armbian, please? These same steps worked in Armbian_21.05.4_Odroidxu4_buster_legacy_4.14.222.img, just as they have in every other Linux distribution.
I tried to follow samond's solution, but still no altered sshd port:
root@odroidxu4:~# cat /etc/systemd/system/sshd.socket
[Socket]
ListenStream=
ListenStream=61022
root@odroidxu4:~# systemctl daemon-reload && systemctl enable sshd.socket && systemctl start sshd.socket
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.