Compare commits

2 Commits

Author SHA1 Message Date
John Lancaster
432453304e wildcard match block for john-stream.com hosts with a cert 2025-12-18 08:53:53 -06:00
John Lancaster
a7eebbc8c8 default match block 2025-12-18 08:53:21 -06:00

View File

@@ -11,9 +11,18 @@
{
"*" = {
user = "john";
forwardAgent = true;
serverAliveInterval = 60;
serverAliveCountMax = 2;
# From the help text about the deprecation of the default config:
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";
};
}
(lib.mkIf (config.profile == "personal") {
@@ -57,6 +66,12 @@
hostname = "192.168.1.129";
user = "root";
};
"*.john-stream.com" = {
user = "john";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
certificateFile = "~/.ssh/id_ed25519-cert.pub";
};
})
(lib.mkIf (config.profile == "work") {
"ubuntu-nvidia" = {