Try to fix ssh usage
This commit is contained in:
parent
17cc2f8e44
commit
d09a8ec04f
1 changed files with 1 additions and 3 deletions
|
@ -23,8 +23,6 @@ in
|
||||||
./shared/ssh.nix
|
./shared/ssh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.openssh.settings.AllowUsers = [ "backup" ];
|
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
# connection only via ssh key
|
# connection only via ssh key
|
||||||
backup = {
|
backup = {
|
||||||
|
@ -106,7 +104,7 @@ in
|
||||||
openssh = {
|
openssh = {
|
||||||
ports = [ 62 ];
|
ports = [ 62 ];
|
||||||
settings = {
|
settings = {
|
||||||
AllowUsers = [ "forgejo" ];
|
AllowUsers = [ "forgejo" "backup" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue