From your shell window open file path like below with your favorite text editor :
Now change port as you want like below
Save the file & exit.
Now restart the ssh service with this command :
systemctl restart sshd
Now you can login to your server with non default ssh port.
Thank you for reading this article.
Was this helpful?
1 / 0