Install NixOS on Hetzner Cloud: Difference between revisions
Oldhomemovie (talk | contribs) No edit summary |
m The public key must be uploaded not the private key. (The command as it was before with the private key will error) |
||
| Line 31: | Line 31: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
#Upload your public key to Hetzner:<syntaxhighlight lang="shell"> | #Upload your public key to Hetzner:<syntaxhighlight lang="shell"> | ||
hcloud ssh-key create --name 'My public key' --public-key-from-file /root/.ssh/id_ed25519 | hcloud ssh-key create --name 'My public key' --public-key-from-file /root/.ssh/id_ed25519.pub | ||
</syntaxhighlight> | </syntaxhighlight> | ||
#Create a VM on Hetzner. Run:<syntaxhighlight lang="shell"> | #Create a VM on Hetzner. Run:<syntaxhighlight lang="shell"> | ||