nixpkgs/nixos
Emily d930466b77 nixos/initrd-ssh: switch from Dropbear to OpenSSH
Dropbear lags behind OpenSSH significantly in both support for modern
key formats like `ssh-ed25519`, let alone the recently-introduced
U2F/FIDO2-based `sk-ssh-ed25519@openssh.com` (as I found when I switched
my `authorizedKeys` over to it and promptly locked myself out of my
server's initrd SSH, breaking reboots), as well as security features
like multiprocess isolation. Using the same SSH daemon for stage-1 and
the main system ensures key formats will always remain compatible, as
well as more conveniently allowing the sharing of configuration and
host keys.

The main reason to use Dropbear over OpenSSH would be initrd space
concerns, but NixOS initrds are already large (17 MiB currently on my
server), and the size difference between the two isn't huge (the test's
initrd goes from 9.7 MiB to 12 MiB with this change). If the size is
still a problem, then it would be easy to shrink sshd down to a few
hundred kilobytes by using an initrd-specific build that uses musl and
disables things like Kerberos support.

This passes the test and works on my server, but more rigorous testing
and review from people who use initrd SSH would be appreciated!
2020-03-25 08:26:50 +00:00
..
doc nixos/initrd-ssh: switch from Dropbear to OpenSSH 2020-03-25 08:26:50 +00:00
lib Compress optionsJSON using brotli 2020-03-24 16:42:04 +01:00
maintainers nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15 2020-03-22 00:35:56 -04:00
modules nixos/initrd-ssh: switch from Dropbear to OpenSSH 2020-03-25 08:26:50 +00:00
tests nixos/initrd-ssh: switch from Dropbear to OpenSSH 2020-03-25 08:26:50 +00:00
COPYING
default.nix nixos: export packages of the current configuration (its pkgs argument) 2018-02-09 19:35:27 +00:00
README
release-combined.nix release-combined.tested: readd boot.biosUsb test 2020-02-22 10:43:26 +01:00
release-small.nix nixos/release-small.nix: Export options job 2020-03-24 21:17:53 +01:00
release.nix nixos/release.nix: Import './..' instead of nixpkgs 2020-02-12 22:44:59 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.