From 9d7b27066ca07578b7fada0c1a35df074c93585c Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Sat, 15 Jan 2022 08:38:39 +1300 Subject: [PATCH] SSH needs to run on another port if we are using host network. We are now forced to used host network because of udev --- overlay/etc/cont-init.d/20-configre_sshd.sh | 3 +++ overlay/etc/supervisor/conf.d/sshd.conf | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/overlay/etc/cont-init.d/20-configre_sshd.sh b/overlay/etc/cont-init.d/20-configre_sshd.sh index eb3cd62..41704f2 100644 --- a/overlay/etc/cont-init.d/20-configre_sshd.sh +++ b/overlay/etc/cont-init.d/20-configre_sshd.sh @@ -7,4 +7,7 @@ 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" diff --git a/overlay/etc/supervisor/conf.d/sshd.conf b/overlay/etc/supervisor/conf.d/sshd.conf index 95fed5c..82c2bc5 100644 --- a/overlay/etc/supervisor/conf.d/sshd.conf +++ b/overlay/etc/supervisor/conf.d/sshd.conf @@ -3,7 +3,9 @@ autostart=true priority=10 directory=/ -command=/usr/sbin/sshd -D +command=/usr/sbin/sshd -Ddp 2222 user=root autorestart=true stopsignal=QUIT +stdout_logfile=/var/log/supervisor/xorg.log +stderr_logfile=/var/log/supervisor/xorg.err