How do I change my Rcs.is's SSH port?
You can change your Rcs.is’s default SSH port by editing its SSH configuration file. To do this, open the /etc/ssh/sshd_config
file in a text editor:
Remove the comment hash (#
) in the # Port 22
line and then replace the 22
value with your desired port value. In the following example, the Port
line is uncommented and the 22
value is replaced with 20202
. This makes the Rcs.is only accessible via SSH using port 20202
.
After editing the port number, save the file and close it. To implement the changes, reboot the Rcs.is:
Once the Rcs.is reboots, you can confirm the changes by logging in to the Rcs.is using the ssh
command line tool and its port (-p
) flag. Use the -p
flag to specify the Rcs.is’s new SSH port:
For example, if your Rcs.is has the IP address 192.88.99.255
and the Rcs.is’s new SSH port is 20202, you would format the command like this:
A successful login to the Rcs.is confirms that SSH port has been successfully reassigned. If your login was unsuccessful, you can log in to the Rcs.is from the Rcs.is Console and troubleshoot the configuration file.