Merge pull request #20469 from Mic92/initrd-ssh

initrd-ssh: fix authorized_key generation with multiple keys
This commit is contained in:
Jörg Thalheim 2016-11-18 23:16:44 +01:00 committed by GitHub
commit c54d2860dc

View file

@ -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}