ssh: Fix issues with trying different keys

This commit is contained in:
PapaTutuWawa 2023-12-27 00:54:00 +01:00
parent 86ce0ed9e6
commit 98c27ce238

View File

@ -23,23 +23,15 @@
programs.ssh = {
enable = true;
extraConfig = ''
IdentitiesOnly yes
'';
includes = [
"config.d/*"
];
matchBlocks = let
sshPort = 1847;
in {
ayame = {
port = sshPort;
hostname = "78.46.184.48";
user = "alexander";
identityFile = "~/.ssh/polynom.me_ayame";
identitiesOnly = true;
};
taihou = {
port = 22;
hostname = "78.47.22.95";
user = "root";
identityFile = "~/.ssh/hetzner";
identitiesOnly = true;
};
"git.polynom.me" = {
port = 2222;
user = "gitea";