add docs for ssh key

This commit is contained in:
2025-07-20 00:48:14 +03:00
parent 1989183ac1
commit 134aacb6b1
+24 -1
View File
@@ -1,2 +1,25 @@
# docs
# SSH configuration for git
Add this in your `~/.ssh/config` file:
```
Host git.home
HostName 192.168.3.29
Port 222
User git
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
```
## 🔐 Notes
- This example uses an **ED25519 key**. If you're using an **RSA key** (`id_rsa`), change the `IdentityFile` line to:
```
IdentityFile ~/.ssh/id_rsa
```
- To generate a new ED25519 key:
```
ssh-keygen -t ed25519 -C "your_email@example.com"
```
- Make sure your public key is added to your Gitea profile.