Change SSH Port

A good first thing to do upon the completed provisioning of your VPS or Dedicated Server running Linux, is to change your SSH port. This will stop the constant network scans that are looking for SSH and other services.

To change the SSH port, please follow the instructions below:

  1. Login to your server via SSH (Putty)
  2. Open up the ssh config file: $ nano /etc/ssh/sshd_config
  3. Uncomment the line that sets the Port number (comments are established with the pound sign (#)) and change the port.
    #Port 22
    ->
    Port ????
  4. Save the file (Ctrl-X with nano).
Restart the SSH daemon: $ service sshd restart
  • 27 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

Previewing your website before transferring it to your VPS - hosts file

Below is a guide to using the hosts file to preview your site before transferring / before DNS...

Connecting to your Linux server via SSH (Shell Access)

An SSH (Secure Shell) session is a useful means of direct communication with your Virtual Server,...

Text Editor on Linux

In order to edit files on the command line you will have to use a text editor.There are many text...

Start/stop web services - Apache, Postfix, MySQL, etc

You can restart application services via SSH. Below are some examples: [Redhat based...

Installing/updating packages on Debian/Ubuntu

Before you search/install a package please refresh the package list using this command - apt-get...