config-perso/modules/ssh.nix
2024-06-19 08:34:47 +02:00

75 lines
1.7 KiB
Nix

{
programs.ssh = {
enable = true;
compression = true;
serverAliveCountMax = 1;
serverAliveInterval = 10;
matchBlocks = {
"*" = {
setEnv."TERM" = "xterm-256color";
};
"watcher.kat" = {
user = "root";
hostname = "watcher.katvayor.net";
};
"r86s.kat" = {
user = "root";
hostname = "100.102.49.84";
};
"test.kat" = {
user = "root";
hostname = "100.102.129.187";
};
"virt.kat" = {
user = "root";
hostname = "fe80::2%%virbr0";
proxyJump = "r86s.kat";
};
"mail-test.kat" = {
user = "root";
hostname = "fe80::3%%virbr0";
proxyJump = "r86s.kat";
};
"traque.kat" = {
user = "root";
hostname = "fe80::4%%virbr0";
proxyJump = "r86s.kat";
};
"sas.ens" = {
user = "lbailly";
hostname = "sas.eleves.ens.fr";
};
"degette.ens" = {
user = "dg";
hostname = "www.dg.ens.fr";
proxyJump = "sas.ens";
};
"bocal.ens" = {
user = "bocal";
hostname = "fregate";
proxyJump = "sas.ens";
};
"netcore02.dgn" = {
user = "root";
hostname = "fd26:baf9:d250:8000::1001";
proxyJump = "r86s.kat";
identityFile = "~/.ssh/juniper";
};
"netaccess01.dgn" = {
user = "root";
hostname = "fd26:baf9:d250:8000::2001";
proxyJump = "r86s.kat";
identityFile = "~/.ssh/juniper";
};
"vault01.dgnum" = {
user = "root";
proxyJump = "r86s.kat";
hostname = "fd26:baf9:d250:8000::1";
};
};
};
}