VPS og dedikerede servere (Hosting Controlcenter) Hjælp

Changing the SSH Port for Your Linux Server

You can change the default SSH port for your Linux server as an added security measure.

Warning: Make sure the new SSH port does not conflict with any known or blocked ports.

To Change the SSH Port for Your Linux Server

  1. Connect to your server via SSH (more info).
  2. Switch to the root user (more info).
  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

Hjalp denne artikel?
Tak for din feedback. Benyt telefonnummeret til support eller chat-funktionen ovenfor, hvis du vil tale med en kundeservicerepræsentant.
Det glæder os, at vi kunne hjælpe! Er der andet, vi kan gøre for dig?
Beklager. Fortæl os, hvad du fandt forvirrende, eller hvorfor løsningen ikke løste dit problem.