How to change the SSH port in Linux Print

  • 110

For security reason is recommendable to change the default ssh port (22) in order to do that you need to follow.

  1. Login to your server using your favorite ssh client like putty
  2. With your favorite editor open /etc/ssh/sshd_config (ex. # nano /etc/ssh/sshd_config)
  3. Look for #Port 22, if its commented, then uncomment it and change 22 for whatever you want, please be careful and use and not used port.
  4. Save the changes, and exit your editor.
  5. Restart your sshd service and thats all.

Was this answer helpful?

« Back