public
nobgit
read
wiki.wiki
No description yet
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/wiki.wiki.git
ssh://[email protected]:2222/orgs/nobgit/wiki.wiki.git
Trace
How to upload an SSH key.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
# How to upload an SSH key
3
## Generate an SSH key
5
Use an Ed25519 key unless your system requires a different key type.
7
### Windows
9
1. Open **PowerShell**.
10
2. Run `ssh-keygen -t ed25519 -C "[email protected]"`.
11
3. Press **Enter** to accept the default file location.
12
4. Optionally enter a passphrase when prompted.
13
5. Copy the public key with `Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub`.
15
### macOS
17
1. Open **Terminal**.
18
2. Run `ssh-keygen -t ed25519 -C "[email protected]"`.
19
3. Press **Enter** to accept the default file location.
20
4. Optionally enter a passphrase when prompted.
21
5. Copy the public key with `cat ~/.ssh/id_ed25519.pub`.
23
### Linux
25
1. Open your terminal.
26
2. Run `ssh-keygen -t ed25519 -C "[email protected]"`.
27
3. Press **Enter** to accept the default file location.
28
4. Optionally enter a passphrase when prompted.
29
5. Copy the public key with `cat ~/.ssh/id_ed25519.pub`.
31
## Upload the key to NobGit
33
1. Click your account menu in the top right.
34
2. Click **Settings**.
35
3. Open **Access**.
36
4. Open **Git access**.
37
5. Find **Optional SSH key**.
38
6. Enter a recognizable **Key name**, such as `Work laptop`.
39
7. Paste the public key into **Public key**. It should start with a type such as `ssh-ed25519`.
40
8. Select **Add SSH key**.
42
Use the SSH clone URL shown in the repository clone panel after the key is saved.
44
- [Previous: access token](How to create an access token.md)
46
- [Next: GPG key](How to upload a GPG key.md)