1
0
Fork 0
dotfiles/home/programs/ssh/shared/work.nix

48 lines
1 KiB
Nix
Raw Normal View History

2022-08-08 21:43:47 +00:00
{ secret, ... }:
{
matchBlocks = {
"git.app.nedeco.de" = {
port = 22;
user = "git";
identityFile = "~/.ssh/nedeco_gitlab.pub";
identitiesOnly = true;
compression = true;
};
"nedeco-smartos-hosting" = {
host = "10.0.90.*";
port = 22;
user = "root";
identityFile = "~/.ssh/nedeco.pub";
identitiesOnly = true;
};
"msc.nedeco.local" = {
port = 22;
user = "root";
identityFile = "~/.ssh/nedeco.pub";
identitiesOnly = true;
};
"headnode.nedeco-hosting.local" = {
hostname = "10.0.90.13";
port = 22;
user = "root";
extraOptions = {
PreferredAuthentications = "password";
};
};
"cnode01.nedeco-hosting.local" = {
hostname = "10.0.88.45";
port = 22;
user = "root";
proxyCommand = "ssh headnode.nedeco-hosting.local nc -w 120 %h %p";
extraOptions = {
PreferredAuthentications = "password";
};
};
} // secret.ssh.matchBlocks.work;
}