modified: README.md
modified: modules/server/README.md new file: modules/server/lxc-ssh.nix modified: profiles/lxc.nix
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
🗄️ modules/server
|
||||
├─ 📦 default.nix # 聚合入口
|
||||
├─ 🔐 ssh.nix # OpenSSH 参数
|
||||
├─ 🔐 lxc-ssh.nix # LXC OpenSSH 覆盖参数
|
||||
├─ 🐳 docker.nix # Docker 与清理策略
|
||||
└─ 📝 README.md
|
||||
```
|
||||
|
||||
8
modules/server/lxc-ssh.nix
Normal file
8
modules/server/lxc-ssh.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
# LXC 容器需要密码登录
|
||||
services.openssh.settings = {
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = true;
|
||||
KbdInteractiveAuthentication = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user