ssh: made root able to use id file

This commit is contained in:
2025-12-29 10:50:48 +00:00
parent db287b22eb
commit 33b2854c19
2 changed files with 22 additions and 1 deletions

View File

@@ -71,6 +71,19 @@ in
# intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
];
};
programs.ssh = {
# enable = true;
startAgent = true;
matchBlocks = {
"*" = {
addKeysToAgent = "yes";
identityFile = [
"~/.ssh/id_ed25519"
];
};
};
};
services.openssh = {
enable = true;
settings = {

View File

@@ -229,8 +229,16 @@ in
programs = {
ssh = {
# enable = true;
extraConfig = "AddKeysToAgent yes";
startAgent = true;
matchBlocks = {
"*" = {
addKeysToAgent = "yes";
identityFile = [
"~/.ssh/id_ed25519"
];
};
};
};
fish.enable = true;
};