Skip to content

Commit

Permalink
ssh: don't add empty PubkeyAcceptedKeyTypes/HostKeyAlgorithms
Browse files Browse the repository at this point in the history
The options introduced in e2444a4 would generate a broken
ssh config when set to an empty list.

/etc/ssh/ssh_config line 7: Missing argument.
  • Loading branch information
LnL7 committed Jul 21, 2018
1 parent 153d224 commit 3572f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/programs/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
'';
Expand Down

0 comments on commit 3572f89

Please sign in to comment.