Secure VPS by changing SSH port

Home » Linux » Secure VPS by changing SSH port
November 27, 2015 Linux No Comments

To Change the SSH Port for Your Linux Server

  1. Connect to your server via SSH .
  2. Switch to the root user .
  3. Run the following command:
    vi /etc/ssh/sshd_config
  4. Locate the following line:
    # Port 22
  5. Remove # and change 22 to your desired port number.
  6. Restart the ssh service by running the following command:

     

LEAVE A COMMENT