2022-09-15 00:57:40 +02:00
|
|
|
{ pkgs, lib, ... }:
|
2019-12-20 05:54:26 +01:00
|
|
|
with lib; {
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
home-manager.users.mainUser = {
|
|
|
|
programs.ssh.enable = true;
|
|
|
|
programs.ssh.matchBlocks = {
|
2022-01-15 10:57:16 +01:00
|
|
|
"*" = {
|
2019-10-24 02:20:38 +02:00
|
|
|
identityFile = "~/.ssh/card_rsa.pub";
|
|
|
|
identitiesOnly = true;
|
2022-01-15 10:57:16 +01:00
|
|
|
};
|
|
|
|
"lassul.us" = {
|
2019-10-24 02:20:38 +02:00
|
|
|
user = "download";
|
|
|
|
port = 45621;
|
|
|
|
};
|
2020-01-03 10:08:59 +01:00
|
|
|
"*.r" = {
|
|
|
|
user = "root";
|
|
|
|
};
|
2021-03-05 08:22:35 +01:00
|
|
|
"*.secret" = {
|
2020-02-03 07:08:43 +01:00
|
|
|
user = "root";
|
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
"*.private" = {
|
|
|
|
user = "root";
|
|
|
|
};
|
2020-06-11 18:41:11 +02:00
|
|
|
"*.lan" = {
|
|
|
|
user = "root";
|
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
"github.com" = {
|
|
|
|
hostname = "ssh.github.com";
|
|
|
|
user = "root";
|
|
|
|
};
|
|
|
|
"es5.siteground.eu" = {
|
|
|
|
user = "ingolfwa";
|
|
|
|
port = 18765;
|
|
|
|
};
|
|
|
|
"*.onion" = {
|
|
|
|
user = "root";
|
|
|
|
};
|
2022-09-15 00:57:40 +02:00
|
|
|
#"*.compute.amazonaws.com".extraOptions = {
|
|
|
|
# ProxyCommand = ''
|
|
|
|
# sh -c "${pkgs.awscli2}/bin/aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
|
|
|
|
# '';
|
|
|
|
#};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|