password-less login for rsync.net

This commit is contained in:
Tyler Starr 2024-09-14 09:40:25 -07:00
parent eda2998b0b
commit d84e57d9a2
5 changed files with 20 additions and 0 deletions

View File

@ -1,6 +1,10 @@
Host github.com
AddKeysToAgent yes
IdentityFile /run/agenix/git/github_personal
Host fm2120.rsync.net
AddKeysToAgent yes
IdentityFile /run/agenix/borg/rsync/id_rsa
{{ if eq .chezmoi.hostname "kestrel" }}
Host torus
AddKeysToAgent yes

View File

@ -20,6 +20,16 @@
owner = "${user}";
group = "users";
};
age.secrets."borg/rsync/id_rsa" = {
file = ../../secrets/borg/rsync/id_rsa.age;
owner = "${user}";
group = "users";
};
age.secrets."borg/rsync/id_rsa.pub" = {
file = ../../secrets/borg/rsync/id_rsa.pub.age;
owner = "${user}";
group = "users";
};
# Password-less login for user
users.users."${user}".openssh.authorizedKeys.keyFiles = [
@ -31,6 +41,10 @@
Host kestrel
AddKeysToAgent yes
IdentityFile /run/agenix/ssh/torus/id_ed25519
Host fm2120.rsync.net
AddKeysToAgent yes
IdentityFile /run/agenix/borg/rsync/id_rsa
'';
}

Binary file not shown.

Binary file not shown.

View File

@ -22,5 +22,7 @@ in
"ssh/torus/id_ed25519.age".publicKeys = [ tstarr_torus ] ++ systems;
"ssh/torus/id_ed25519.pub.age".publicKeys = users ++ systems;
"borg/torus/password.age".publicKeys = [ tstarr_torus ] ++ systems;
"borg/rsync/id_rsa.age".publicKeys = users ++ systems;
"borg/rsync/id_rsa.pub.age".publicKeys = users ++ systems;
}