SSH public key authentication: Difference between revisions
No edit summary |
m Make keyFiles suggestion compatible with pure evaluation mode Tags: Mobile edit Mobile web edit Visual edit |
||
| Line 76: | Line 76: | ||
Alternatively, you can reference a custom file containing the authorized keys: | Alternatively, you can reference a custom file containing the authorized keys: | ||
{{file| | {{file||| | ||
<nowiki> | <nowiki> | ||
users.users."user".openssh.authorizedKeys.keyFiles = [ | users.users."user".openssh.authorizedKeys.keyFiles = [ | ||
./ssh/authorized_keys | |||
]; | ]; | ||
</nowiki> | </nowiki> | ||
}} | |name=/etc/nixos/configuration.nix|lang=nix}} | ||
For additional configuration options, see the {{nixos:option|users.users.*.openssh}} module documentation. | For additional configuration options, see the {{nixos:option|users.users.*.openssh}} module documentation. | ||