@@ -52,6 +52,8 @@ let
5252 ));
5353 in listToAttrs (map mkAuthKeyFile usersWithKeys);
5454
55+ supportOldHostKeys = !versionAtLeast config.system.stateVersion "15.07";
56+
5557in
5658
5759{
@@ -177,7 +179,7 @@ in
177179 default =
178180 [ { type = "rsa"; bits = 4096; path = "/etc/ssh/ssh_host_rsa_key"; }
179181 { type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
180− ] ++ optionals (!versionAtLeast config.system.stateVersion "15.07")
182+ ] ++ optionals supportOldHostKeys
181183 [ { type = "dsa"; path = "/etc/ssh/ssh_host_dsa_key"; }
182184 { type = "ecdsa"; bits = 521; path = "/etc/ssh/ssh_host_ecdsa_key"; }
183185 ];
@@ -347,6 +349,15 @@ in
347349 ${flip concatMapStrings cfg.hostKeys (k: ''
348350 HostKey ${k.path}
349351 '')}
352+
353+ # Allow DSA client keys for now. (These were deprecated
354+ # in OpenSSH 7.0.)
355+ PubkeyAcceptedKeyTypes +ssh-dss
356+
357+ # Re-enable DSA host keys for now.
358+ ${optionalString supportOldHostKeys ''
359+ HostKeyAlgorithms +ssh-dss
360+ ''}
350361 '';
351362
352363 assertions = [{ assertion = if cfg.forwardX11 then cfgc.setXAuthLocation else true;