change ssh port code example
Example 1: change sshd config
sudo nano /etc/ssh/sshd_config
Example 2: edit default port for linux server
# Change Apache, FTP, and SSH Default Port To A Custom port
nano /etc/apache2/ports.conf
Example 3: ssh on specify port
ssh user@remotehostip -p XXX