Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells, Networking

Adding and Removing sshd instances on CentOS 6

Submitted by on April 20, 2019 – 8:24 pm

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.

[su_spoiler title=”Sample output of add” icon=”arrow-circle-1″]

[/su_spoiler] [su_spoiler title=”Sample output of del” icon=”arrow-circle-1″]

[/su_spoiler]

Print Friendly, PDF & Email

Leave a Reply