From 134aacb6b1ac490e74c6d3a2932365d9945b238e Mon Sep 17 00:00:00 2001 From: mccaron Date: Sun, 20 Jul 2025 00:48:14 +0300 Subject: [PATCH] add docs for ssh key --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7dd802a..d73bed1 100644 --- a/README.md +++ b/README.md @@ -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.