modified: README.md
modified: modules/server/README.md new file: modules/server/lxc-ssh.nix modified: profiles/lxc.nix
This commit is contained in:
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