2024-11-29 05:46:01 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-01-13 14:53:42 -05:00
|
|
|
}: {
|
2024-11-29 05:46:01 +00:00
|
|
|
programs.ssh = {
|
|
|
|
# SSH configuration
|
|
|
|
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 compression
|
|
|
|
compression = true;
|
|
|
|
# enable session reuse
|
|
|
|
controlMaster = "auto";
|
|
|
|
controlPersist = "10m";
|
|
|
|
# Configure known hosts
|
2025-01-09 10:58:16 -05:00
|
|
|
matchBlocks = {
|
2025-02-12 01:27:35 -05:00
|
|
|
"tides" = {
|
|
|
|
hostname = "150.136.87.190";
|
|
|
|
};
|
2025-02-05 16:03:28 -05:00
|
|
|
"static.stranger.systems" = {
|
|
|
|
hostname = "129.153.226.221";
|
|
|
|
user = "ubuntu";
|
|
|
|
};
|
|
|
|
"git.stranger.systems" = {
|
|
|
|
user = "ubuntu";
|
|
|
|
};
|
2025-01-09 10:58:16 -05:00
|
|
|
};
|
2024-11-29 05:46:01 +00:00
|
|
|
};
|
|
|
|
}
|