As a follow-up to my previous answer…
The man page for sshd_config says:
Port Specifies the port number that sshd(8) listens on.
The default is 22. Multiple options of this are permitted.
Your first option is then to directly modify /etc/sshd_config. But you’ll get a warning by YNH.
So a better option is to create a script to let YNH do it for you: Share your "hooks" to apply custom configurations- Partagez vos "hooks" pour appliquer des configurations personnelles
I didn’t try, but you can search for “Port 22” and replace it by 2 lines (use \n I guess).