.gitbay/wiki/SSH-keys.org
31 lines · 732 bytes
1#+title: SSH keys
2
3Your key is your identity on gitbay: there are no passwords. Registering
4pastes the public half of a key pair; the private half never leaves your
5machine.
6
7* Make a key
8
9#+begin_src sh
10ssh-keygen -t ed25519 -C "you@host"
11#+end_src
12
13Accept the default path. Two files land in =~/.ssh/=: =id_ed25519= is
14private, keep it; =id_ed25519.pub= is public, paste it.
15
16* Get the public half
17
18#+begin_src sh
19cat ~/.ssh/id_ed25519.pub
20#+end_src
21
22One line, starting =ssh-ed25519 AAAA…= and ending with your comment. That
23whole line is what the registration form and =register= want.
24
25* Check it works
26
27#+begin_src sh
28ssh git@<host> whoami
29#+end_src
30
31More keys, labels and scopes: [[Users][the user guide]] under "SSH keys".