Create Public folder

This commit is contained in:
Lucas Mathews
2025-12-13 17:00:43 +01:00
parent bde9a79680
commit 8a8f9dc16a
8 changed files with 7 additions and 6 deletions

View File

@@ -0,0 +1,27 @@
---
title: Create SSH Keys in Gitea
description:
published: false
date: 2025-05-04T11:42:39.943Z
tags: git, public
editor: markdown
dateCreated: 2025-05-04T11:38:34.846Z
---
## 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:
```bash
cd ~/.ssh
ssh-keygen -t ed25519 -C "your_email@example.com"
```
## 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**.