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
|
# 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 = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -229,8 +229,16 @@ in
|
|||||||
programs = {
|
programs = {
|
||||||
ssh = {
|
ssh = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
extraConfig = "AddKeysToAgent yes";
|
|
||||||
startAgent = true;
|
startAgent = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"*" = {
|
||||||
|
addKeysToAgent = "yes";
|
||||||
|
identityFile = [
|
||||||
|
"~/.ssh/id_ed25519"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user