Fix bug
This commit is contained in:
parent
3b3c58b346
commit
05bfef728b
1 changed files with 10 additions and 10 deletions
|
|
@ -76,20 +76,20 @@ in
|
|||
enable = true;
|
||||
ports = [ cfg.sshPort ];
|
||||
settings = {
|
||||
# SSH hardening for borg users
|
||||
Match = "Group borg-server";
|
||||
PasswordAuthentication = false;
|
||||
PubkeyAuthentication = true;
|
||||
PermitRootLogin = "no";
|
||||
X11Forwarding = false;
|
||||
AllowAgentForwarding = false;
|
||||
AllowTcpForwarding = false;
|
||||
PermitTunnel = "no";
|
||||
|
||||
# Keep connection alive settings
|
||||
ClientAliveInterval = 10;
|
||||
ClientAliveCountMax = 30;
|
||||
};
|
||||
extraConfig = ''
|
||||
# SSH hardening for borg users
|
||||
Match Group borg-server
|
||||
PasswordAuthentication no
|
||||
PubkeyAuthentication yes
|
||||
X11Forwarding no
|
||||
AllowAgentForwarding no
|
||||
AllowTcpForwarding no
|
||||
PermitTunnel no
|
||||
'';
|
||||
};
|
||||
|
||||
# Open firewall port
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue