Rsync: Difference between revisions
imported>Tom Add rsync page with how to restrict access |
imported>Tom rsync: suggest the usage of restrict command, to prevent client using things like port forwarding |
||
| Line 12: | Line 12: | ||
isNormalUser = true; | isNormalUser = true; | ||
openssh.authorizedKeys.keys = [ | openssh.authorizedKeys.keys = [ | ||
''command="${pkgs.rrsync}/bin/rrsync /home/backup/dir/" ssh-ed25519 AAAAC3NzaCetcetera/etceteraJZMfk3QPfQ'' | ''command="${pkgs.rrsync}/bin/rrsync /home/backup/dir/",restrict ssh-ed25519 AAAAC3NzaCetcetera/etceteraJZMfk3QPfQ'' | ||
]; | ]; | ||
}; | }; | ||