From 40ea563a6a47aac5f5cffc207e3af1c48fa0ef45 Mon Sep 17 00:00:00 2001 From: Kudzu Date: Sun, 8 Jun 2025 21:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0=E5=A4=87=E4=BB=BD=EF=BC=9A20?= =?UTF-8?q?25-06-08=2021:18:51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .obsidian/plugins/keep-the-rhythm/data.json | 6 ++- .obsidian/plugins/novel-word-count/data.json | 43 +++++++++++++++---- .../plugins/recent-files-obsidian/data.json | 4 ++ .obsidian/workspace.json | 15 ++++--- A3-Tools/SSH/添加其他密钥.md | 26 +++++++++++ 5 files changed, 78 insertions(+), 16 deletions(-) create mode 100644 A3-Tools/SSH/添加其他密钥.md diff --git a/.obsidian/plugins/keep-the-rhythm/data.json b/.obsidian/plugins/keep-the-rhythm/data.json index 53246e5..642649e 100644 --- a/.obsidian/plugins/keep-the-rhythm/data.json +++ b/.obsidian/plugins/keep-the-rhythm/data.json @@ -195,7 +195,7 @@ }, "84495aa7-b700-4720-aff4-326f29f1ed45": { "2025-06-08": { - "totalDelta": -529, + "totalDelta": -166, "files": { "A0-Diary/广铁笔试.md": { "initial": 10817, @@ -220,6 +220,10 @@ "README.md": { "initial": 200, "current": 200 + }, + "A3-Tools/SSH/添加其他密钥.md": { + "initial": 0, + "current": 363 } } } diff --git a/.obsidian/plugins/novel-word-count/data.json b/.obsidian/plugins/novel-word-count/data.json index 7f3a571..9b1ffc1 100644 --- a/.obsidian/plugins/novel-word-count/data.json +++ b/.obsidian/plugins/novel-word-count/data.json @@ -1705,20 +1705,20 @@ "isCountable": true, "targetNodeType": "file", "noteCount": 1, - "wordCount": 411, + "wordCount": 299, "wordCountTowardGoal": 0, "wordGoal": null, - "pageCount": 1.37, - "characterCount": 2755, - "nonWhitespaceCharacterCount": 2486, - "newlineCount": 97, - "readingTimeInMinutes": 1.0649811320754718, + "pageCount": 0.9966666666666667, + "characterCount": 2224, + "nonWhitespaceCharacterCount": 1988, + "newlineCount": 87, + "readingTimeInMinutes": 0.8037358490566038, "linkCount": 0, "embedCount": 0, "aliases": null, "createdDate": 1748236347000, - "modifiedDate": 1748236347000, - "sizeInBytes": 3343, + "modifiedDate": 1749368622813, + "sizeInBytes": 2606, "sessionStart": { "noteCount": 1, "pageCount": 1.37, @@ -1727,6 +1727,33 @@ "nonWhitespaceCharacterCount": 2486, "newlineCount": 97 } + }, + "A3-Tools/SSH/添加其他密钥.md": { + "isCountable": true, + "targetNodeType": "file", + "noteCount": 1, + "wordCount": 0, + "wordCountTowardGoal": 0, + "wordGoal": null, + "pageCount": 0, + "characterCount": 0, + "nonWhitespaceCharacterCount": 0, + "newlineCount": 0, + "readingTimeInMinutes": 0, + "linkCount": 0, + "embedCount": 0, + "aliases": null, + "createdDate": 1749388524107, + "modifiedDate": 1749388524107, + "sizeInBytes": 0, + "sessionStart": { + "noteCount": 0, + "pageCount": 0, + "wordCount": 0, + "characterCount": 0, + "nonWhitespaceCharacterCount": 0, + "newlineCount": 0 + } } } } \ No newline at end of file diff --git a/.obsidian/plugins/recent-files-obsidian/data.json b/.obsidian/plugins/recent-files-obsidian/data.json index e4c469a..5adb469 100644 --- a/.obsidian/plugins/recent-files-obsidian/data.json +++ b/.obsidian/plugins/recent-files-obsidian/data.json @@ -1,5 +1,9 @@ { "recentFiles": [ + { + "basename": "添加其他密钥", + "path": "A3-Tools/SSH/添加其他密钥.md" + }, { "basename": "README", "path": "README.md" diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 410e1aa..99b807a 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,13 +13,13 @@ "state": { "type": "markdown", "state": { - "file": "README.md", - "mode": "preview", + "file": "A3-Tools/SSH/添加其他密钥.md", + "mode": "source", "source": true, "backlinks": false }, "icon": "lucide-file", - "title": "README" + "title": "添加其他密钥" } } ] @@ -112,13 +112,13 @@ "state": { "type": "outline", "state": { - "file": "README.md", + "file": "A3-Tools/SSH/添加其他密钥.md", "followCursor": false, "showSearch": false, "searchQuery": "" }, "icon": "lucide-list", - "title": "README 的大纲" + "title": "添加其他密钥 的大纲" } }, { @@ -237,6 +237,9 @@ }, "active": "b23a4afdd37382e0", "lastOpenFiles": [ + "README.md", + "A3-Tools/SSH/添加其他密钥.md", + "A3-Tools/SSH", "A1-Work/接单/电梯维保系统.md", "A3-Tools/Obsidian/插件/推荐插件.md", "A3-Tools/Obsidian/代码片段/图片位置.md", @@ -255,7 +258,6 @@ "A5-Attachments/iaQfTWE1_IkxJDJc02NfH8RNKcIKrbpr-gXHf5DUJrtoIFDNN3a4rgjeyF2KS3Pz8L_YBLYlDlscbxIdMuhnxQ.png", "A5-Attachments/C7a-r07FfPOQ-9k4kfgGeD1U5j5D_-XqZ9bATFrFeuykxtZqOeMCqzcMgHehYKabD8ajuo9_joWDPLuU-MIerw.png", "A1-Work/接单", - "README.md", "A7-Template/标准模板.md", "A7-Template", "A3-Tools/Obsidian/插件", @@ -272,7 +274,6 @@ "A0-Diary/未命名.canvas", "A0-Diary/未命名.md", "A0-Diary/未命名 1", - "A0-Diary/未命名", "A1-Work/Hello World.md", "A1-Work/未命名 1.md", "测试软件回收站.md" diff --git a/A3-Tools/SSH/添加其他密钥.md b/A3-Tools/SSH/添加其他密钥.md new file mode 100644 index 0000000..2344912 --- /dev/null +++ b/A3-Tools/SSH/添加其他密钥.md @@ -0,0 +1,26 @@ +## 准备 +- `id_rsa` +- `id_rsa.pub` + +## 开始 +1. 在用户根目录创建 `.ssh` 文件夹 +```shell +mkdir ~/.ssh && cd ~/.ssh +``` +2. 将上面准备的文件复制到创建的 `.ssh` 文件夹中 +3. 修改文件夹与文件权限 +```shell +chmod 700 ~/.ssh +chmod 644 ~/.ssh/id_rsa.pub +chmod 600 ~/.ssh/id_xxx +``` +4. 添加至 ssh +```shell +ssh-add ~/.ssh/id_rsa +``` + +## 配置 +```shell +git config --global user.name "用户名" +git config --global user.email "邮箱" +``` \ No newline at end of file