Merge pull request #40686 from Izorkin/ssh
ssh: custom config key types
This commit is contained in:
commit
e2444a433f
@ -61,6 +61,29 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow DSA keys for now. (These were deprecated in OpenSSH 7.0.)
|
||||||
|
pubkeyAcceptedKeyTypes = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [
|
||||||
|
"+ssh-dss"
|
||||||
|
];
|
||||||
|
example = [ "ssh-ed25519" "ssh-rsa" ];
|
||||||
|
description = ''
|
||||||
|
Specifies the key types that will be used for public key authentication.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
hostKeyAlgorithms = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [
|
||||||
|
"+ssh-dss"
|
||||||
|
];
|
||||||
|
example = [ "ssh-ed25519" "ssh-rsa" ];
|
||||||
|
description = ''
|
||||||
|
Specifies the host key algorithms that the client wants to use in order of preference.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
@ -188,9 +211,8 @@ in
|
|||||||
|
|
||||||
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
|
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
|
||||||
|
|
||||||
# Allow DSA keys for now. (These were deprecated in OpenSSH 7.0.)
|
PubkeyAcceptedKeyTypes ${concatStringsSep "," cfg.pubkeyAcceptedKeyTypes}
|
||||||
PubkeyAcceptedKeyTypes +ssh-dss
|
HostKeyAlgorithms ${concatStringsSep "," cfg.hostKeyAlgorithms}
|
||||||
HostKeyAlgorithms +ssh-dss
|
|
||||||
|
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user