diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2016-11-16 14:17:42 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@higgsboson.tk> | 2016-11-16 14:47:37 +0000 |
commit | 7ad01f5f0c570e754c471db1d9d1c697f1292eca (patch) | |
tree | 486c5041f60d6d11aa8e053ac1f771a6043607b5 /nixos/modules/system/boot/initrd-ssh.nix | |
parent | 8ef3eaeb4e531929ec29a880cb4c67f790e5eb70 (diff) | |
download | nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.gz nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.bz2 nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.lz nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.xz nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.tar.zst nixpkgs-7ad01f5f0c570e754c471db1d9d1c697f1292eca.zip |
initrd-ssh: fix authorized_key generation with multiple keys
multiple entries should be separated by newline
Diffstat (limited to 'nixos/modules/system/boot/initrd-ssh.nix')
-rw-r--r-- | nixos/modules/system/boot/initrd-ssh.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix index a8c7d4b3ee5..59ecaf8d5a6 100644 --- a/nixos/modules/system/boot/initrd-ssh.nix +++ b/nixos/modules/system/boot/initrd-ssh.nix @@ -122,7 +122,7 @@ in mkdir -p /root/.ssh ${concatStrings (map (key: '' - echo -n ${escapeShellArg key} >> /root/.ssh/authorized_keys + echo ${escapeShellArg key} >> /root/.ssh/authorized_keys '') cfg.authorizedKeys)} dropbear -s -j -k -E -m -p ${toString cfg.port} |