Changing the SSH Port on the Catalogic DPX Master Server

Assume that you want to change the TCP port number for SSH connections with the Catalogic DPX Master Server from 22 to 38249. Take the following steps:

  1. Log in to the shell of the Catalogic DPX Master Server as dpxadmin.

  2. Edit the /etc/ssh/sshd_config file with the sudo command and a text editor such as vi:

    $ sudo vi /etc/ssh/sshd_config
  3. Find the line with #Port 22, remove the number sign (#) and change the digit to the port number that you want to use. For example, use the following line to use TCP port 38249 for the SSH connection:

    Port 38249

    Save the file and exit.

  4. Allow the port in the firewalld policy. For example, you can use the following command to allow TCP port 38249:

    $ sudo firewall-cmd --permanent --add-port=38249/tcp
  5. Reload the firewalld rule:

    $ sudo firewall-cmd --reload
  6. Restart the SSH server:

    $ sudo systemctl retart sshd

Ensure that you can connect to the Catalogic DPX Master Server with the new port number from your SSH client.

Last updated