Add keys to ssh-agent
This commit is contained in:
16
.obsidian/workspace.json
vendored
16
.obsidian/workspace.json
vendored
@@ -11,14 +11,14 @@
|
||||
"id": "c892fa5f5c3f77ba",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"type": "split-diff-view",
|
||||
"state": {
|
||||
"file": "templates/blank-template.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
"aFile": "Guides/create-shh-keys.md",
|
||||
"bFile": "Guides/create-shh-keys.md",
|
||||
"aRef": ""
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "blank-template"
|
||||
"icon": "diff",
|
||||
"title": "Diff: create-shh-keys"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -191,8 +191,9 @@
|
||||
"obsidian-git:Open Git source control": false
|
||||
}
|
||||
},
|
||||
"active": "bbdb625e70da8213",
|
||||
"active": "c892fa5f5c3f77ba",
|
||||
"lastOpenFiles": [
|
||||
"templates/blank-template.md",
|
||||
"Guides/create-shh-keys.md",
|
||||
"Guides/windows_upgrade.md",
|
||||
"Guides/rdp-with-microsoft-account.md",
|
||||
@@ -203,7 +204,6 @@
|
||||
"_images/screenshot_from_2025-04-08_12-04-31.png",
|
||||
"_images/screenshot_2024-03-23_132217.png",
|
||||
"_images/lucas's_home_network.png",
|
||||
"templates/blank-template.md",
|
||||
"_images",
|
||||
"_images/screenshot_2024-03-23_132626.png",
|
||||
"_images/screenshot_2024-03-23_132919.png",
|
||||
|
||||
@@ -7,7 +7,7 @@ tags: git, public
|
||||
editor: markdown
|
||||
dateCreated: 2025-05-04T11:38:34.846Z
|
||||
---
|
||||
# Creating SSH Key
|
||||
## 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:
|
||||
@@ -16,5 +16,12 @@ cd ~/.ssh
|
||||
ssh-keygen -t ed25519 -C "your_email@example.com"
|
||||
```
|
||||
|
||||
# Add Public key to Gitea
|
||||
|
||||
## 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**.
|
||||
|
||||
Reference in New Issue
Block a user