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