Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
21 lines
508 B
Markdown
21 lines
508 B
Markdown
# Secure Shell Access {#sec-ssh}
|
|
|
|
Secure shell (SSH) access to your machine can be enabled by setting:
|
|
|
|
```nix
|
|
{ services.openssh.enable = true; }
|
|
```
|
|
|
|
By default, root logins using a password are disallowed. They can be
|
|
disabled entirely by setting
|
|
[](#opt-services.openssh.settings.PermitRootLogin) to `"no"`.
|
|
|
|
You can declaratively specify authorised public keys for a user
|
|
as follows:
|
|
|
|
```nix
|
|
{
|
|
users.users.alice.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAB3NzaC1kc3MAAACBAPIkGWVEt4..." ];
|
|
}
|
|
```
|