then search for "Port 22" and change the port number to the custom port you want.
Save the changes
Restart the SSH service
service sshd restart
service ssh restart
Please make sure firewall rules are allowed on the new port number.
Note : Dont close the terminal. Just try to ssh to the device from another terminal using the new port number. if it is working, you are good to close the terminal. Else edit the settings once again and save, then restart the ssh service.