open the file of ssh config:
sudo nano /etc/ssh/ssh_config
find the port
#port 22
uncomment (remove the #
) the port option
then save the file by ctrl + x and restart your service
sudo service sshd restart
open the file of ssh config:
sudo nano /etc/ssh/ssh_config
find the port
#port 22
uncomment (remove the #
) the port option
then save the file by ctrl + x and restart your service
sudo service sshd restart