1
0

home/private/ssh-hosts: set up defaults

This commit is contained in:
2025-12-20 08:16:47 -08:00
parent 1f79bea69b
commit 92f842fe8a

View File

@@ -3,11 +3,30 @@
programs.ssh = { programs.ssh = {
enable = true; enable = true;
enableDefaultConfig = false;
matchBlocks = let matchBlocks = let
tb1 = "~/.ssh/id_rsa.tb1.pub"; tb1 = "~/.ssh/id_rsa.tb1.pub";
tb2 = "~/.ssh/id_rsa.tb2.pub"; tb2 = "~/.ssh/id_rsa.tb2.pub";
in in
{ {
# Defaults
"*" = {
# Configure sharing of multiple sessions over a single network connection.
controlMaster = "auto";
# Specify path to the control socket used for connection sharing.
controlPath = "~/.ssh/master-%r@%n:%p";
# Whether control socket should remain open in the background.
controlPersist = "10m";
# Set default timeout in seconds after which response will be requested.
serverAliveInterval = 15;
# Whether the connection to the authentication agent (if any) will be forwarded to
# the remote machine.
forwardAgent = false;
};
# HomeLab Machines # HomeLab Machines
"fs1" = { "fs1" = {
hostname = "fs1.t1.xyz"; hostname = "fs1.t1.xyz";
@@ -37,6 +56,17 @@
identityFile = tb1; identityFile = tb1;
}; };
"teb" = {
hostname = "teb";
identityFile = tb1;
forwardAgent = true;
};
"fix" = {
hostname = "fix";
identityFile = tb1;
forwardAgent = true;
};
# Cloud Machines # Cloud Machines
"t1" = { "t1" = {
hostname = "95.216.215.4"; hostname = "95.216.215.4";