I modified the /etc/sshd/sshd_config file, ran the commands: systemctl daemon-reload systemctl restart ssh.socket And the port was not changed.
I modified the /etc/sshd/ sshd_config file, ran the commands:
systemctl daemon-reload
systemctl restart ssh.socket
And the port was not changed.