Debian 初始化脚本与数据包

- init-debian.sh:用户创建、数据包下载与校验(防路径穿越)、/data 权限归一化(私钥、ACME 存储、.env 收紧为 600)、apt/docker/sshd 配置、sudoers、SSH 密钥、证书同步定时任务,新增任务 14 首次同步证书
- data.tar.gz:不含任何证书、私钥和密码,证书由 scripts/certs.sh 从证书机拉取;gateway 面板密码改从 .env 读取,并移除含 EAB 凭据的 zerossl 解析器
- 历史已压缩,旧历史中含敏感文件
This commit is contained in:
kairee committed 2026-10-12 10:12:54 +08:00
commit ac8b7cc171
11 files changed
+949

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
Port 46571
AddressFamily any
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
PermitRootLogin prohibit-password
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no
GSSAPIAuthentication no
GSSAPICleanupCredentials no
GSSAPIStrictAcceptorCheck no
GSSAPIKeyExchange no
UsePAM yes
X11Forwarding yes
TCPKeepAlive yes
ClientAliveInterval 60
UseDNS no
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Match User kairee
PasswordAuthentication yes