ssh: made root able to use id file
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -229,8 +229,16 @@ in
|
||||
programs = {
|
||||
ssh = {
|
||||
# enable = true;
|
||||
extraConfig = "AddKeysToAgent yes";
|
||||
startAgent = true;
|
||||
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
addKeysToAgent = "yes";
|
||||
identityFile = [
|
||||
"~/.ssh/id_ed25519"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
fish.enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user