#!/bin/sh

#
#   Copyright (C) 2017 Cumulus Networks, Inc. All rights reserved
#
#   This software is subject to the Cumulus Networks End User License
#   Agreement available  at the following locations:
#
#   Internet: https://cumulusnetworks.com/downloads/eula/latest/view/
#   Cumulus Linux systems: /usr/share/cumulus/EULA.txt
#

# Wrapper for launching the internal chassis sshd service

CHSMGMTV4_ADDR=$(/usr/lib/cumulus/chassis-info -4)
PORT=722

exec /usr/sbin/sshd -D -4 -f /etc/ssh/chassis_sshd_config \
     -o ListenAddress=${CHSMGMTV4_ADDR}:${PORT}
