SSH default port number

SSH default port number

The default TCP port for SSH is 2211.

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 sshd service by running the following command:
    service sshd restart



这章程是否对您有帮助?

mood_bad 不喜欢 0
mood 喜欢 0
visibility 查看: 7316