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:
Log in to the shell of the Catalogic DPX Master Server as
dpxadmin
.Edit the
/etc/ssh/sshd_config
file with thesudo
command and a text editor such as vi:$ sudo vi /etc/ssh/sshd_config
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.
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
Reload the firewalld rule:
$ sudo firewall-cmd --reload
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