1
0
Fork 0

Use 1PW as the SSH agent

This commit is contained in:
Daniel Kempkens 2022-03-17 10:33:21 +01:00
parent b77104c03d
commit ef64652150
2 changed files with 5 additions and 17 deletions

View file

@ -12,9 +12,7 @@ in
hashKnownHosts = true; hashKnownHosts = true;
serverAliveInterval = 60; serverAliveInterval = 60;
extraConfig = '' extraConfig = ''
IgnoreUnknown UseKeychain,AddKeysToAgent IdentityAgent ~/.ssh/1password.sock
UseKeychain yes
AddKeysToAgent yes
UpdateHostKeys ask UpdateHostKeys ask
VerifyHostKeyDNS yes VerifyHostKeyDNS yes
''; '';
@ -25,8 +23,8 @@ in
"git.app.nedeco.de" = { "git.app.nedeco.de" = {
port = 22; port = 22;
user = "git"; user = "git";
identityFile = "~/.ssh/nedeco_gitlab.pub";
identitiesOnly = true; identitiesOnly = true;
identityFile = "~/.ssh/nedeco_gitlab";
compression = true; compression = true;
}; };
@ -34,8 +32,8 @@ in
host = "10.0.90.*"; host = "10.0.90.*";
port = 22; port = 22;
user = "root"; user = "root";
identityFile = "~/.ssh/nedeco.pub";
identitiesOnly = true; identitiesOnly = true;
identityFile = "~/.ssh/nedeco";
}; };
# Private # Private
@ -43,8 +41,8 @@ in
"github.com" = { "github.com" = {
port = 22; port = 22;
user = "git"; user = "git";
identityFile = "~/.ssh/GitHub.pub";
identitiesOnly = true; identitiesOnly = true;
identityFile = "~/.ssh/GitHub";
compression = true; compression = true;
}; };
@ -66,8 +64,8 @@ in
hostname = "10.0.0.100"; hostname = "10.0.0.100";
port = 22; port = 22;
user = "daniel"; user = "daniel";
identityFile = "~/.ssh/NAS.pub";
identitiesOnly = true; identitiesOnly = true;
identityFile = "~/.ssh/freenas";
compression = true; compression = true;
}; };
}; };

View file

@ -25,16 +25,6 @@
}; };
} }
{
name = "ssh-agent-macos";
src = pkgs.fetchFromGitHub {
owner = "nifoc";
repo = "ssh-agent-macos.fish";
rev = "a9dde730a462b3b327cabf1a56a643a12b0aea3d";
sha256 = "e0YrQzcgkHvFiYuXluS+TZ/hjDneK33xcWbo7sjXWNA=";
};
}
{ {
name = "done-fish"; name = "done-fish";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {