home/pbsds: ssh

This commit is contained in:
Peder Bergebakken Sundt 2023-03-11 03:39:21 +01:00
parent cf52f57012
commit fb9fcd3648
1 changed files with 73 additions and 0 deletions

View File

@ -12,4 +12,77 @@
complete -W "$(cat ~/.ssh/config | grep '^Host ' | cut -b 6- | grep -v "\*")" remote-init
fi
'';
programs.ssh.enable = true;
programs.ssh.controlMaster = "yes";
programs.ssh.compression = true;
programs.ssh.matchBlocks = {
"*".serverAliveInterval = 10;
"*".serverAliveCountMax = 3;
"*.pbsds.net".forwardX11 = true;
"github.com".forwardX11 = false;
"*.ntnu.no".user = "pederbs";
"*.pvv.org".user = "pederbs";
"*.hpc.ntnu.no".proxyJump = "isvegg.pvv.ntnu.no";
"*.idi.ntnu.no".proxyJump = "isvegg.pvv.ntnu.no";
# me
"roxm.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
"noximilien.pbsds.net" = {};
"bolle.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
"knut.pbsds.net".port = 23;
"nord.pbsds.net".port = 24;
# ntnu
"stud.ntnu.no".hostname = "login.stud.ntnu.no";
"login.stud.ntnu.no" = {};
"clab15.idi.ntnu.no" = {};
"idun-login1.hpc.ntnu.no" = {};
"snotra-login1.idi.ntnu.no" = {};
"oppdal.idi.ntnu.no" = {};
"selbu.idi.ntnu.no" = {};
"malvik.idi.ntnu.no" = {};
"heid.idi.ntnu.no" = {};
# NVG
"nvg.ntnu.no".hostname = "login.stud.ntnu.no";
# pvv
"alphys.pvv.ntnu.no".user = "root";
"balduzius.pvv.ntnu.no".user = "root";
"brzeczyszczykiewicz.pvv.ntnu.no" = {};
"dash8.pvv.ntnu.no" = {};
"demiurgen.pvv.ntnu.no" = {};
"dvask-mgmt.pvv.ntnu.no".user = "root";
"eirin.pvv.ntnu.no" = {};
"essendrop.pvv.ntnu.no" = {};
"fenris.pvv.ntnu.no".user = "root";
"git.pvv.ntnu.no" = {};
"hasub.pvv.ntnu.no" = {};
"hildring.pvv.ntnu.no" = {};
"innovation.pvv.ntnu.no".user = "root";
"isvegg.pvv.ntnu.no" = {};
"knakelibrak.pvv.ntnu.no" = {};
"lommel.pvv.ntnu.no" = {};
"microbel.pvv.ntnu.no" = {};
"monty.pvv.ntnu.no" = {};
"nsa.pvv.ntnu.no" = {};
"principal.pvv.ntnu.no".user = "root";
"skrotnisse.pvv.ntnu.no" = {};
"skrott.pvv.ntnu.no".user = "root";
"sleipner.pvv.ntnu.no" = {};
"sleipner.pvv.ntnu.no" = {};
"spikkjeposche.pvv.ntnu.no" = {};
"tallulah.pvv.ntnu.no" = {};
"tim.pvv.ntnu.no" = {};
"tom.pvv.ntnu.no" = {};
"toriel.pvv.ntnu.no".user = "root";
# fyrkat
"fyrkat.no".hostname = "fridge.fyrkat.no";
"fridge.fyrkat.no" = {};
"fil.fyrkat.no" = {};
};
}