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 = { programs.ssh = {
enable = true; enable = true;
extraConfig = ''
IdentitiesOnly yes
'';
includes = [
"config.d/*"
];
matchBlocks = let matchBlocks = let
sshPort = 1847; sshPort = 1847;
in { 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" = { "git.polynom.me" = {
port = 2222; port = 2222;
user = "gitea"; user = "gitea";