ssh-agent setup
This commit is contained in:
parent
8dfd30b333
commit
974de549bc
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.ssh-agent = {
|
||||
enable = true;
|
||||
};
|
||||
programs.ssh = {
|
||||
# SSH configuration
|
||||
enable = true;
|
||||
|
@ -16,10 +19,17 @@
|
|||
# enable session reuse
|
||||
controlMaster = "auto";
|
||||
controlPersist = "10m";
|
||||
# setup agent
|
||||
addKeysToAgent = "yes";
|
||||
# Configure known hosts
|
||||
matchBlocks = {
|
||||
"tides" = {
|
||||
hostname = "150.136.87.190";
|
||||
forwardAgent = true;
|
||||
};
|
||||
"driftwood" = {
|
||||
hostname = "driftwood.stranger.systems";
|
||||
forwardAgent = true;
|
||||
};
|
||||
"static.stranger.systems" = {
|
||||
hostname = "129.153.226.221";
|
||||
|
|
Loading…
Add table
Reference in a new issue