March 13

How to Change SSH Port in Ubuntu 20.04

Change the default SSH port in Ubuntu, perform the following steps with root privileges:

  1. Open the /etc/ssh/sshd_config file and locate the line:
    #Port 22
  2. Then,add
    Port 2200
  3. Restart the SSH server:
    sudo systemctl restart sshd


Posted March 13, 2021 by Ray in category "Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.