ssh-agent setup

This commit is contained in:
Nathan McCarty 2025-03-27 02:39:35 -04:00
parent 8dfd30b333
commit 974de549bc

View file

@ -4,6 +4,9 @@
pkgs, pkgs,
... ...
}: { }: {
services.ssh-agent = {
enable = true;
};
programs.ssh = { programs.ssh = {
# SSH configuration # SSH configuration
enable = true; enable = true;
@ -16,10 +19,17 @@
# enable session reuse # enable session reuse
controlMaster = "auto"; controlMaster = "auto";
controlPersist = "10m"; controlPersist = "10m";
# setup agent
addKeysToAgent = "yes";
# Configure known hosts # Configure known hosts
matchBlocks = { matchBlocks = {
"tides" = { "tides" = {
hostname = "150.136.87.190"; hostname = "150.136.87.190";
forwardAgent = true;
};
"driftwood" = {
hostname = "driftwood.stranger.systems";
forwardAgent = true;
}; };
"static.stranger.systems" = { "static.stranger.systems" = {
hostname = "129.153.226.221"; hostname = "129.153.226.221";