2022-10-14 13:49:36 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
{
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
compression = true;
|
|
|
|
|
|
|
|
matchBlocks = {
|
2021-10-13 13:29:07 +01:00
|
|
|
"giugl.io" = {
|
|
|
|
user = "root";
|
|
|
|
identityFile = "~/.ssh/architectproxy";
|
|
|
|
};
|
2023-02-11 02:29:48 +00:00
|
|
|
|
2022-11-14 11:32:58 +00:00
|
|
|
"192.35.222.32" = {
|
|
|
|
user = "giulio";
|
2023-06-06 21:32:55 +01:00
|
|
|
identityFile = "~/.ssh/ucsb";
|
2022-11-14 11:32:58 +00:00
|
|
|
};
|
2023-02-11 02:29:48 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"tommy.devs.giugl.io" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/tommypc";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"dodino.devs.giugl.io" = {
|
|
|
|
user = "pi";
|
|
|
|
identityFile = "~/.ssh/dodino";
|
|
|
|
};
|
|
|
|
|
2021-11-25 11:36:27 +00:00
|
|
|
"pepos.devs.giugl.io" = {
|
2021-08-25 10:48:03 +01:00
|
|
|
user = "pepos";
|
|
|
|
identityFile = "~/.ssh/pepos";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"bastion.nms.kcl.ac.uk" = {
|
|
|
|
user = "k1804704";
|
|
|
|
identityFile = "~/.ssh/kcllabs";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"s2access" = {
|
|
|
|
hostname = "s2lab-access.nms.kcl.ac.uk";
|
|
|
|
user = "k1804704";
|
|
|
|
identityFile = "~/.ssh/kcllabs";
|
|
|
|
proxyJump = "bastion.nms.kcl.ac.uk";
|
|
|
|
};
|
|
|
|
|
2021-11-25 11:36:27 +00:00
|
|
|
"kcl-mtl-features" = {
|
2021-08-25 10:48:03 +01:00
|
|
|
hostname = "134.219.148.11";
|
|
|
|
user = "peperunas";
|
|
|
|
port = 30330;
|
|
|
|
identityFile = "~/.ssh/kcl-mtl";
|
|
|
|
};
|
|
|
|
|
2021-11-25 11:36:27 +00:00
|
|
|
"kcl-mtl-deeplearning" = {
|
|
|
|
hostname = "134.219.148.11";
|
|
|
|
user = "peperunas";
|
|
|
|
port = 30332;
|
|
|
|
identityFile = "~/.ssh/kcl-mtl";
|
|
|
|
};
|
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"aws-kcl" = {
|
|
|
|
hostname = "ssh0-eu-west-2.nms.kcl.ac.uk";
|
|
|
|
user = "k1804704";
|
|
|
|
identityFile = "~/.ssh/kcllabs";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"ctf.mhackeroni.it" = {
|
|
|
|
user = "root";
|
|
|
|
identityFile = "~/.ssh/github";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"hotpottino.devs.giugl.io" = {
|
|
|
|
user = "pi";
|
|
|
|
identityFile = "~/.ssh/hotpottino";
|
|
|
|
};
|
|
|
|
|
|
|
|
"gbeast.devs.giugl.io" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/gbeast";
|
|
|
|
forwardX11 = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
"ctf.pnc.giugl.io" = {
|
|
|
|
hostname = "s2lab.isg.rhul.ac.uk";
|
|
|
|
user = "peperunas";
|
|
|
|
port = 38022;
|
|
|
|
identityFile = "~/.ssh/rhul_infrastructure";
|
|
|
|
};
|
|
|
|
|
|
|
|
"padulino.devs.giugl.io" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/padulino";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"ssh.dev.azure.com" = {
|
|
|
|
user = "git";
|
|
|
|
identityFile = "~/.ssh/freta";
|
|
|
|
};
|
|
|
|
|
|
|
|
"peppiniell.devs.giugl.io" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/peppiniell";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"broccolino.devs.giugl.io" = {
|
|
|
|
user = "pi";
|
|
|
|
port = 5541;
|
|
|
|
identityFile = "~/.ssh/broccoli";
|
|
|
|
};
|
|
|
|
|
|
|
|
"secloud-node-8" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/secloud-node-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
"git.seclab.cs.ucsb.edu" = {
|
|
|
|
user = "peperunas";
|
2023-06-06 21:32:55 +01:00
|
|
|
identityFile = "~/.ssh/ucsb";
|
2021-08-25 10:48:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
"architect.devs.giugl.io" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/giupi";
|
2021-11-25 11:36:27 +00:00
|
|
|
forwardAgent = true;
|
2021-08-25 10:48:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
"architect.devs.giugl.io.boot" = {
|
2021-11-25 11:36:27 +00:00
|
|
|
hostname = "architect.devs.giugl.io";
|
2021-08-25 10:48:03 +01:00
|
|
|
user = "root";
|
|
|
|
identityFile = "~/.ssh/giupi";
|
|
|
|
};
|
|
|
|
|
|
|
|
"git.giugl.io" = {
|
2021-11-25 11:36:27 +00:00
|
|
|
user = "gitea";
|
2021-12-07 16:55:40 +00:00
|
|
|
port = 22;
|
2021-08-25 10:48:03 +01:00
|
|
|
identityFile = "~/.ssh/gitea";
|
2021-11-25 11:36:27 +00:00
|
|
|
identitiesOnly = true;
|
2021-08-25 10:48:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
"github.com" = {
|
|
|
|
user = "git";
|
|
|
|
identityFile = "~/.ssh/github";
|
|
|
|
};
|
2023-06-06 21:32:55 +01:00
|
|
|
|
|
|
|
"code.iti.illinois.edu" = {
|
|
|
|
user = "gitlab";
|
|
|
|
identityFile = "~/.ssh/github";
|
|
|
|
};
|
2021-08-25 10:48:03 +01:00
|
|
|
|
|
|
|
"git.ctf.necst.it" = {
|
|
|
|
user = "ctf";
|
|
|
|
identityFile = "~/.ssh/gitlab_necst";
|
|
|
|
};
|
2021-11-25 11:42:32 +00:00
|
|
|
|
2021-08-25 10:48:03 +01:00
|
|
|
"manduria.devs.giugl.io" = {
|
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/imacmanduria";
|
|
|
|
};
|
|
|
|
|
2021-11-25 11:42:32 +00:00
|
|
|
"bitbucket.org" = { identityFile = "~/.ssh/bitbucket"; };
|
2021-08-25 10:48:03 +01:00
|
|
|
|
|
|
|
"the.al" = {
|
|
|
|
user = "git";
|
|
|
|
port = 17002;
|
|
|
|
identityFile = "~/.ssh/alain";
|
|
|
|
};
|
|
|
|
|
|
|
|
"ironman.local.necst.it" = {
|
|
|
|
user = "peperunas";
|
|
|
|
identityFile = "~/.ssh/ironman";
|
|
|
|
};
|
|
|
|
|
|
|
|
"aur.archlinux.org" = {
|
|
|
|
user = "aur";
|
|
|
|
identityFile = "~/.ssh/aur";
|
|
|
|
};
|
2023-02-07 22:08:42 +00:00
|
|
|
|
2023-06-06 21:32:55 +01:00
|
|
|
"ucsb-workstation.devs.giugl.io" = {
|
2023-02-07 22:08:42 +00:00
|
|
|
user = "giulio";
|
|
|
|
identityFile = "~/.ssh/ucsb";
|
|
|
|
forwardAgent = true;
|
|
|
|
};
|
2021-08-25 10:48:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
IdentitiesOnly yes
|
|
|
|
ServerAliveInterval 3600
|
2022-10-14 13:49:36 +01:00
|
|
|
'' + lib.optionalString pkgs.stdenv.isDarwin ''
|
2022-10-14 13:52:48 +01:00
|
|
|
AddKeysToAgent yes
|
2022-10-14 13:49:36 +01:00
|
|
|
UseKeychain yes
|
|
|
|
TCPKeepAlive no
|
2021-08-25 10:48:03 +01:00
|
|
|
'';
|
2021-11-25 11:42:32 +00:00
|
|
|
};
|
2021-08-25 10:48:03 +01:00
|
|
|
}
|