Files
docker-steam-headless/overlay/etc/cont-init.d/20-configre_sshd.sh
Josh.5 9d7b27066c SSH needs to run on another port if we are using host network.
We are now forced to used host network because of udev
2022-01-15 08:38:39 +13:00

14 lines
311 B
Bash

# Generate new SSH host keys if they dont exist
if [[ ! -f /etc/ssh/ssh_host_rsa_key ]]; then
echo "**** Generating SSH keys ****";
/usr/bin/ssh-keygen -A
fi
mkdir -p /run/sshd
chmod 744 /run/sshd
echo "**** Configure SSH service ****";
echo 'Port 2222' > /etc/ssh/ssh_config.d/port.conf
echo "DONE"