This is a process and a couple of script to allow you to setup an additional sshd service on an alternate port.

The two scripts below are for CentOS/RHEL 6, but they can be easily adapted for the current versions. The new script will prompt you for the instance name and port. It will verify that both a unique. The script will also add iptables rule, if you are running it. If you’re using selinux, you will need to make some additional changes manually.

The del script will prompt you for the name of the instance you want to delete.

You can download the add script here, and the del script here.

Sample output of add

Sample output of del

Leave A Reply

Please enter your comment!
Please enter your name here