ssh: Update config

This commit is contained in:
Jan Kremer 2025-12-04 07:54:46 +01:00
parent 8597d955a6
commit 34611d6f3b
Signed by: jan
GPG key ID: A7DA689CB3B078EC

View file

@ -72,11 +72,25 @@
ssh = {
enable = true;
addKeysToAgent = "yes";
enableDefaultConfig = false;
matchBlocks."*" = {
forwardAgent = false;
addKeysToAgent = "yes";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
identityFile = [ "~/.ssh/id_ed25519" ];
setEnv = {
TERM = "xterm-256color";
};
};
extraConfig = ''
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
SetEnv TERM=xterm-256color
'';
};