fix: Fixed ssh config to include Identity file for server

This commit is contained in:
Patrick Großmann 2023-01-22 14:25:02 +01:00
parent a9ac04717b
commit 7bdb3b6775
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -44,7 +44,7 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxD4GOrwrBTG4/qQhm5hoSB2CP7W9g1LPWP11oLGOjQ
enable = true;
matchBlocks =
let
identityFile = [ "~/.ssh/1" "~/.ssh/2" ];
identityFile = [ "~/.ssh/1.pub" "~/.ssh/2.pub" ];
in
{
"elisabeth" = {
@ -62,6 +62,9 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxD4GOrwrBTG4/qQhm5hoSB2CP7W9g1LPWP11oLGOjQ
user = "patrick";
inherit identityFile;
};
"*.lel.lol" = {
inherit identityFile;
};
"*" = {
identitiesOnly = true;
};