Create and Assign an SSH Key
This tutorial walks through generating an SSH key pair and adding the public key to your GXP profile. An SSH key authenticates local SSH Git operations. It does not grant repository or team permissions, and is not required for hosted planning/editor sessions.
- Sign in with a verified dashboard account. The profile exposes the SSH Keys tab to users recognized as developers; you also need Developer access on your team for plugin work (see Add Developer Role)
- You need a terminal / command line on your development machine
Time: ~5 minutes
Steps
1. Check for an Existing SSH Key
Before generating a new key, check whether you already have one you can reuse:
ls ~/.ssh
If you see files like id_ed25519 and id_ed25519.pub (or id_rsa / id_rsa.pub), you may already have a key. If you control the matching private key, you can skip to Step 3. Do not overwrite an existing private key when generating another one.
2. Generate a New SSH Key
Run the following command, using an identifying comment, such as your account email:
ssh-keygen -t ed25519 -C "you@example.com"
When prompted:
- File location — accept the default (
~/.ssh/id_ed25519) only if it does not overwrite a key you need, or choose a new filename - Passphrase — enter a passphrase for added security, or press Enter to skip
Generating public/private ed25519 key pair.
Enter file in which to save the key (/Users/you/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/you/.ssh/id_ed25519
Your public key has been saved in /Users/you/.ssh/id_ed25519.pub
The -C value is a comment, not the account identity used for authorization. Key-generation, passphrase and filename options are described in the OpenSSH manual.
3. Copy Your Public Key
Copy the contents of your public key file to your clipboard:
macOS:
pbcopy < ~/.ssh/id_ed25519.pub
Linux:
xclip -selection clipboard < ~/.ssh/id_ed25519.pub
# or: cat ~/.ssh/id_ed25519.pub
Windows (Git Bash):
cat ~/.ssh/id_ed25519.pub | clip
If you chose another filename, use its .pub file in these commands. Paste only the one-line public key; never paste the private key or its passphrase into the dashboard.
The value will look something like:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... you@example.com
4. Open Your GXP Profile
In the GXP dashboard, click your avatar or name in the top-right corner and select Profile (or Account Settings).

5. Navigate to SSH Keys
Inside your profile settings, select the SSH Keys tab.

6. Add a New SSH Key
Click Add SSH Key.

7. Paste Your Public Key
Fill in the form:
| Field | Value |
|---|---|
| Title | A descriptive name for this key, e.g. MacBook Pro 2024 |
| Key | Paste the full contents of your .pub file |
8. Save the Key
Click Add Key. The platform saves the key to your profile and attempts to synchronize it with the Git server.
A saved row or success toast does not prove synchronization: the current UI displays success for any successful save response. The response separately reports gitea_synced and gitea_sync_error; a key may be saved locally while synchronization is unavailable or fails. Verify SSH authentication before assuming cloning will work. If synchronization failed, ask your platform administrator to check the Git-server connection and key synchronization; do not repeatedly add the same key.
9. Test the Connection
From your terminal, test that authentication works:
ssh -T -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 -p PORT git@HOST
Replace HOST and PORT with the SSH host and port shown by your app repository's clone URL; do not use the dashboard hostname by assumption. For example, a URL beginning ssh://git@HOST:2222/ uses port 2222. Substitute your chosen private-key filename after -i.
On first connection, verify the server host-key fingerprint with your platform administrator before accepting it. This identifies the server and is different from your personal public-key fingerprint. See the OpenSSH client manual for connection and identity options.
A Git server can greet an authenticated user while refusing an interactive shell. Read the greeting rather than treating shell availability or the command's exit status alone as the result. Then try the clone URL for a repository you are allowed to access: authentication success does not establish access to every repository.
Troubleshooting and key lifecycle
| Symptom | Check |
|---|---|
| SSH Keys tab is missing | Current account/developer access and verified dashboard session |
| Invalid key format | Paste the complete one-line public key, including its type and base64 content |
| Key already registered | The platform checks fingerprints across accounts; changing the title or comment does not create a different key |
| Saved key, but authentication fails | Check Git-server synchronization as well as the selected local identity |
| Connection refused or timeout | Host, SSH port and network reachability from the clone URL |
| Permission denied (publickey) | Matching private key, passphrase/agent availability and synchronized public key; use the explicit identity above |
| Authentication succeeds, but clone/push fails | Repository path and account/team/repository authorization |
Compare the profile's fingerprint with your local public key:
ssh-keygen -lf ~/.ssh/id_ed25519.pub
To remove a key, use its trash button in SSH Keys and confirm. Keys belong to the account that added them; deletion is checked against that ownership. The platform attempts Git-server removal before deleting the local record, but can still remove the local record when the remote service is unavailable or fails. For a lost or compromised key, have an administrator verify removal on the Git server as well. Removing the profile row does not delete the files on your workstation.
The listed Last used value is metadata, not proof that a particular clone or push succeeded.
What's Next
- Create a New Plugin App — create a plugin template and clone its repo with your new SSH key