This is basically not recommended but anyway this is achieve-able.
cp /etc/ssh/sshd_config /etc/ssh/sshd_config-another
Edit the sshd-config-another
file and assign different port no and pid file.
Port 1022
PidFile /var/run/sshd-another.pid
Now run,
ln -s /usr/sbin/sshd /usr/bin/sshd-another
cp /etc/rc.d/init.d/sshd /etc/rc.d/init.d/sshd-another
Open the new init script and make changes accordingly.
# config: /etc/ssh/sshd_config-another
# pidfile: /var/run/sshd-another.pid
[ -f /etc/sysconfig/sshd-another ] && . /etc/sysconfig/sshd-another
prog="sshd-another"
SSHD=/usr/sbin/sshd-another
PID_FILE=/var/run/sshd-another.pid
Create /etc/sysconfig/sshd-second
file.
OPTIONS="-f /etc/ssh/sshd_config-another"
Separate PAM configuration.
ln -s /etc/pam.d/sshd /etc/pam.d/sshd-another
Restart the service.
service sshd restart
service sshd-another restart
Chkconfig it.
chkconfig --add sshd-another
chkconfig on sshd-another