If you use the ssh port option (--ssh-port=wxyz) in the automated setup, it is not retained after a restart. The following entries are missing: vi /etc/ssh/sshd_config.d/99-custom.conf Port wxyz vi /etc/systemd/system/ssh.socket.d/listen.conf [Socket] ListenStream=wxyz There may be another solution, but this one works