Add basic ssh config

This commit is contained in:
Nathan McCarty 2022-04-24 17:39:32 -04:00
parent 52a4c0e3ae
commit e3f74fa118
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 19 additions and 0 deletions

View File

@ -152,6 +152,25 @@
};
};
};
# SSH configuration
programs.ssh = {
enable = true;
# extra config to set the ciphers
extraConfig = ''
Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
'';
# enable session reuse
controlMaster = "auto";
controlPersist = "10m";
# Configure known hosts
matchBlocks = {
"levitation" = {
forwardAgent = true;
user = "nathan";
hostname = "172.23.12.134";
};
};
};
};
};
## Misc packages that were in user.nix