xinetdでSSHを動かす

例として挙げたポート番号は7819です。
22番は鍵のみ有効とか、ローカルのみとかで7819は外部公開とかそういった用途で
ナッパ逝く!ディディーン

インストール
aptitude install xinetd
vi /etc/services
sshd2 7819/tcp #ssh 2nd

cp /etc/ssh/sshd_config /etc/ssh/sshd2_config
vi /etc/ssh/sshd2_config
# What ports, IPs and protocols we listen for
Port 7819

サービスの追加
vi /etc/xinetd.d/sshd2
service sshd2
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/sshd
server_args = -i -f /etc/ssh/sshd2_config
}

xinetdの再起動
# ps axf |grep xinetd
2368 pts/1 S+ 0:00 | \_ grep xinetd
32648 ? Ss 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayal
kill -HUP 32648

あーあと、/var/run/sshd (chmod755) がないと起動しない原因になるそうです。俺の場合はデフォであったけどね、
https://forums.ubuntulinux.jp/viewtopic.php?id=2789