Comment 5 for bug 2069041

Revision history for this message
shucai he (baozixiaoge) wrote : Re: Changing Port in sshd_config and restarting ssh.service without effect

I'm currently trying out the Ubuntu 24.04 version and encountered an issue where modifying the SSH port didn't take effect. Fortunately, I came across this help and followed your suggestions to attempt the modifications. The port modification is now working as expected.
 sudo vim /etc/ssh/sshd_config
sudo systemctl daemon-reload
sudo systemctl restart ssh.socket