ssh: don't add empty PubkeyAcceptedKeyTypes/HostKeyAlgorithms
The options introduced in e2444a433f
would generate a broken
ssh config when set to an empty list.
/etc/ssh/ssh_config line 7: Missing argument.
This commit is contained in:
parent
153d2241c1
commit
3572f89bbe
1 changed files with 2 additions and 2 deletions
|
@ -211,8 +211,8 @@ in
|
|||
|
||||
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
|
||||
|
||||
PubkeyAcceptedKeyTypes ${concatStringsSep "," cfg.pubkeyAcceptedKeyTypes}
|
||||
HostKeyAlgorithms ${concatStringsSep "," cfg.hostKeyAlgorithms}
|
||||
${optionalString (cfg.pubkeyAcceptedKeyTypes != []) PubkeyAcceptedKeyTypes "${concatStringsSep "," cfg.pubkeyAcceptedKeyTypes}"}
|
||||
${optionalString (cfg.hostKeyAlgorithms != []) HostKeyAlgorithms "${concatStringsSep "," cfg.hostKeyAlgorithms}"}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue