Changing SSH Port

You can change the port that SSH listens on which by default is 22 from within the Linux CLI.

 

  1. Use your favorite editor such as nano and open the file of /etc/ssh/sshd_config

     

  2. Scroll down to where you see #Port 22.

     

  3. Remove the # infront of 22 and change 22 to be any port you want.  In our example we changed port 22 to 2022

     

  4. Restart sshd now and you should be all set.

Unable to render {include} The included page could not be found.