If you have your ssh server installed, open file explorer, (make sure you are admin), in the path area put, %programdata%\ssh\ , here you will see sshd_config (if I remember right). You can open it in notepad, or in vscode, look for port, change it to the port you want, then save, either reboot or in powershell type , restart-service -name *ssh* -force , then see if you can access via your other machine.