Agenix: Difference between revisions
Phanirithvij (talk | contribs) imported from old wiki |
m →Choose a Public/Private Key: link to ssh pages |
||
Line 39: | Line 39: | ||
=== Choose a Public/Private Key === | === Choose a Public/Private Key === | ||
First, we have to decide which SSH public key to use to encrypt the secrets. (The private key will be used to decrypt the secrets when loading the NixOS configuration.) | First, we have to decide which [[SSH public key authentication|SSH public key]] to use to encrypt the secrets. (The private key will be used to decrypt the secrets when loading the NixOS configuration.) | ||
Assuming that you have SSH already installed on your NixOS server (with i.e. <code>services.openssh.enable = true;</code>), you will already have two different SSH keypairs that are intended to be used by the system itself, located at: | Assuming that you have [[SSH]] already installed on your NixOS server (with i.e. <code>services.openssh.enable = true;</code>), you will already have two different SSH keypairs that are intended to be used by the system itself, located at: | ||
* <code>/etc/ssh/ssh_host_rsa_key</code> / <code>/etc/ssh/ssh_host_rsa_key.pub</code> | * <code>/etc/ssh/ssh_host_rsa_key</code> / <code>/etc/ssh/ssh_host_rsa_key.pub</code> |