ssh config

This commit is contained in:
Harivansh Rathi 2026-03-29 14:32:56 -04:00
parent 9d9df025d6
commit 0e6d9a341a
5 changed files with 54 additions and 33 deletions

40
home/ssh.nix Normal file
View file

@ -0,0 +1,40 @@
{...}: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
includes = [
"/Users/rathi/.config/colima/ssh_config"
];
matchBlocks = {
aurelius = {
hostname = "100.71.160.102";
user = "nixos";
identityFile = "~/.ssh/id_ed25519";
};
netty = {
hostname = "152.53.195.59";
user = "rathi";
identityFile = "~/.ssh/id_ed25519";
};
"agentcomputer.ai" = {
hostname = "ssh.agentcomputer.ai";
port = 443;
user = "agentcomputer";
identityFile = "~/.ssh/id_ed25519";
identitiesOnly = true;
serverAliveInterval = 30;
serverAliveCountMax = 4;
};
"*" = {
setEnv = {
TERM = "xterm-256color";
};
};
};
};
}