From 2c3e6aca0c5be3674818385af57d2a3fb6064733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Sun, 5 Oct 2025 21:38:28 +0200 Subject: [PATCH] Add SSH configuration setup in service.ssh.sh if not present --- service.ssh.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/service.ssh.sh b/service.ssh.sh index bb20d03..8d579c9 100644 --- a/service.ssh.sh +++ b/service.ssh.sh @@ -1,3 +1,15 @@ #!/bin/sh +if [ ! -e /etc/ssh/sshd_config ]; then + mkdir -p /etc/ssh/sshd_config.d + echo "Include /etc/ssh/sshd_config.d/*.conf +PermitRootLogin yes +AuthorizedKeysFile .ssh/authorized_keys +PasswordAuthentication yes +AllowTcpForwarding yes +GatewayPorts no +X11Forwarding no +Subsystem sftp internal-sftp" > /etc/ssh/sshd_config +fi + exec /usr/sbin/sshd -D