Multiple SSH Daemons – Centos

Posted: 24th April 2013 by Thorben Hemmler in Serveradministration
cd /etc/ssh/
cp sshd_config sshd_config_kunden

sshd_config_kunden

Port 22
PermitRootLogin no

sshd_config

Port 23
PermitRootLogin yes
ln -s /usr/sbin/sshd /usr/sbin/sshd_kunden
cd /etc/rc.d/init.d/
cp sshd sshd_kunden

Startscripte anpassen

config: /etc/ssh/sshd_config
config: /etc/ssh/sshd_config_kunden

pidfile: /var/run/sshd.pid
pidfile: /var/run/sshd_kunden.pid

[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
[ -f /etc/sysconfig/sshd_kunden ] && . /etc/sysconfig/sshd-kunden

prog="sshd"
prog="sshd_kunden"

SSHD=/usr/sbin/sshd
SSHD=/usr/sbin/sshd_kunden

PID_FILE=/var/run/sshd.pid
PID_FILE=/var/run/sshd-internal.pid
# /etc/sysconfig/sshd-internal
OPTIONS="-f /etc/ssh/sshd_config_kunden"
chkconfig sshd_kunden on