config-perso/modules/ssh.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

2024-03-17 11:31:42 +01:00
{
programs.ssh = {
enable = true;
compression = true;
serverAliveCountMax = 1;
serverAliveInterval = 10;
matchBlocks = {
"*" = {
setEnv."TERM" = "xterm-256color";
};
"watcher.kat" = {
user = "ubuntu";
hostname = "watcher.katvayor.net";
};
"r86s.kat" = {
user = "root";
2024-03-26 16:06:08 +01:00
hostname = "100.102.49.84";
2024-03-17 11:31:42 +01:00
};
2024-03-18 20:26:22 +01:00
"test.kat" = {
user = "root";
hostname = "100.102.129.187";
};
2024-03-17 11:31:42 +01:00
2024-03-20 10:07:21 +01:00
"virt.kat" = {
user = "root";
2024-03-27 17:35:34 +01:00
hostname = "fe80::2%%virbr0";
proxyJump = "r86s.kat";
2024-03-20 10:07:21 +01:00
};
2024-03-17 11:31:42 +01:00
"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";
};
2024-03-22 14:24:31 +01:00
"jourdan01.dgn" = {
user = "root";
2024-03-26 16:06:08 +01:00
hostname = "192.168.42.6";
2024-03-22 14:24:31 +01:00
proxyJump = "r86s.kat";
};
"jourdan01.netconf.dgn" = {
user = "dgnum";
2024-03-26 16:06:08 +01:00
hostname = "192.168.42.6";
2024-03-22 14:24:31 +01:00
proxyJump = "r86s.kat";
port = 830;
extraOptions.sessionType = "subsystem";
identityFile = "~/.ssh/juniper";
};
2024-03-17 11:31:42 +01:00
};
};
}