> For the complete documentation index, see [llms.txt](https://federated.gitbook.io/fedcampus-server/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://federated.gitbook.io/fedcampus-server/setup/address/how-to-generate-and-add-new-ssh-key.md).

# How to generate and add new ssh key

https\://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

> Note: After adding the public key, access servers the next day.

### Generate ssh key

Paste the text below, replacing the email used in the example with your GitHub email address.

```shell
ssh-keygen -t ed25519 -C "your_email@example.com"
```

**Note:** If you are using a legacy system that doesn't support the Ed25519 algorithm, use:

```shell
 ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
```

### Add ssh key to GitHub

```
cat ~/.ssh/id_xxx.pub
```

Copy the public key to your GitHub > Settings

<figure><img src="https://3506223270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWciGuc5xhDxkkaXKlYib%2Fuploads%2FB553gdNP9PTPPM537T6m%2Fimage.png?alt=media&amp;token=e9eeefec-e5a7-4837-a0d2-8be7f0f020c8" alt=""><figcaption><p>add ssh key</p></figcaption></figure>
