mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
password-less login for rsync.net
This commit is contained in:
parent
eda2998b0b
commit
d84e57d9a2
@ -1,6 +1,10 @@
|
|||||||
Host github.com
|
Host github.com
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
IdentityFile /run/agenix/git/github_personal
|
IdentityFile /run/agenix/git/github_personal
|
||||||
|
|
||||||
|
Host fm2120.rsync.net
|
||||||
|
AddKeysToAgent yes
|
||||||
|
IdentityFile /run/agenix/borg/rsync/id_rsa
|
||||||
{{ if eq .chezmoi.hostname "kestrel" }}
|
{{ if eq .chezmoi.hostname "kestrel" }}
|
||||||
Host torus
|
Host torus
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
|
@ -20,6 +20,16 @@
|
|||||||
owner = "${user}";
|
owner = "${user}";
|
||||||
group = "users";
|
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
|
# Password-less login for user
|
||||||
users.users."${user}".openssh.authorizedKeys.keyFiles = [
|
users.users."${user}".openssh.authorizedKeys.keyFiles = [
|
||||||
@ -31,6 +41,10 @@
|
|||||||
Host kestrel
|
Host kestrel
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
IdentityFile /run/agenix/ssh/torus/id_ed25519
|
IdentityFile /run/agenix/ssh/torus/id_ed25519
|
||||||
|
|
||||||
|
Host fm2120.rsync.net
|
||||||
|
AddKeysToAgent yes
|
||||||
|
IdentityFile /run/agenix/borg/rsync/id_rsa
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
provision/secrets/borg/rsync/id_rsa.age
Normal file
BIN
provision/secrets/borg/rsync/id_rsa.age
Normal file
Binary file not shown.
BIN
provision/secrets/borg/rsync/id_rsa.pub.age
Normal file
BIN
provision/secrets/borg/rsync/id_rsa.pub.age
Normal file
Binary file not shown.
@ -22,5 +22,7 @@ in
|
|||||||
"ssh/torus/id_ed25519.age".publicKeys = [ tstarr_torus ] ++ systems;
|
"ssh/torus/id_ed25519.age".publicKeys = [ tstarr_torus ] ++ systems;
|
||||||
"ssh/torus/id_ed25519.pub.age".publicKeys = users ++ systems;
|
"ssh/torus/id_ed25519.pub.age".publicKeys = users ++ systems;
|
||||||
"borg/torus/password.age".publicKeys = [ tstarr_torus ] ++ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user