mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
ssh: provide code snippet in enableDefaultConfig description
This commit is contained in:
committed by
Austin Horstman
parent
a3d90c996f
commit
77a71380c3
@@ -559,6 +559,21 @@ in
|
||||
description = ''
|
||||
Whether to enable or not the old default config values.
|
||||
This option will become deprecated in the future.
|
||||
For an equivalent, copy and paste the following
|
||||
code snippet in your config:
|
||||
|
||||
programs.ssh.matchBlocks."*" = {
|
||||
forwardAgent = false;
|
||||
addKeysToAgent = "no";
|
||||
compression = false;
|
||||
serverAliveInterval = 0;
|
||||
serverAliveCountMax = 3;
|
||||
hashKnownHosts = false;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
controlMaster = "no";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlPersist = "no";
|
||||
};
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user