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,
|
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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue