I would like to change the default port for SSH from 22 to some other number. As far as I know this should be doable by editing /etc/ssh/sshd_config and adding the line: Port xxxx, and by restarting the service. For some reason this does not work, and when I try to ssh from my PC to Verdin SOM it still uses the default port 22.
I’m using a customized TorizonCore image based on: torizon-core-docker-rt-verdin-imx8mp-Tezi_6.3.0-devel-202305+build.7.tar.
I’m wondering why these changes are not applied and how to do it properly on TorizonCore? Any help on this issue is appreciated.
I did some research and apparently for sshd.socket, which is what TorizonCore uses currently, you can change the port by doing the steps below on the module: