1
create shh keys
Lucas Mathews edited this page 2025-12-28 11:59:13 +01:00

Creating SSH Key

Ideally the following steps are completed on the device and user which you want to allow the connection from, so it will be saved in their ~/.ssh folder.

Run the following commands:

cd ~/.ssh
ssh-keygen -t ed25519 -C "your_email@example.com"

Note

You can also use a name instead of the email address i.e. "lucas-desktop"

Add Keys to ssh-agent

Run the following command ssh-add ~/.ssh/id_ed25519

Replace id_ed25519 in the command with the name of your private key file

Add Public key to Gitea

cat the contents of the public key and add it into Gitea under Settings > SSH / GPG Keys > Add key.