From 02b50356454e6791471655bf6d1c7db49db6b113 Mon Sep 17 00:00:00 2001 From: Cat Tom Date: Sat, 4 Apr 2026 00:11:24 +0800 Subject: [PATCH] Edit Snippets.md --- docs/tech/OPNsense-26-1.md | 2 +- docs/tech/Snippets.md | 48 +++++++++++++++++++++++++++++++++++--- 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/docs/tech/OPNsense-26-1.md b/docs/tech/OPNsense-26-1.md index 215e691..871a3b0 100644 --- a/docs/tech/OPNsense-26-1.md +++ b/docs/tech/OPNsense-26-1.md @@ -7,7 +7,7 @@ | 192.168.1.1 | CatTomServer0 - OPNsense | \ | | 192.168.1.2 | CatTomServer0 - Proxmox | \ | | 192.168.1.3 | \ | \ | -| 192.168.1.4 | \ | \ | +| 192.168.1.4 | CatTomServer4 | \ | | 192.168.1.5 | CatTomServer1 | 54:f6:c5:f4:98:b0 | | 192.168.1.6 | CatTomPBS | \ | | 192.168.1.7 | CatTomServer2 | 24:5E:BE:69:90:C9 | diff --git a/docs/tech/Snippets.md b/docs/tech/Snippets.md index 4421764..1728edd 100644 --- a/docs/tech/Snippets.md +++ b/docs/tech/Snippets.md @@ -177,7 +177,7 @@ services: 5. 最后,重启你的电脑。 -## 修复 macOS Tahoe 26.4 git 提交时调用 ed25519-sk SSH 密钥错误 +## macOS Tahoe 26.4 git 提交时调用 ed25519-sk SSH 密钥错误 ### 环境 @@ -197,7 +197,7 @@ Signing /var/folders/71/0cg33245411cnc0d7zfrkgqm0000gn/T//.git_signing_buffer_tm fatal: failed to write commit object ``` -### 解决办法 +### 解决办法(其实没解决) ``` bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" @@ -224,4 +224,46 @@ code Documents/Code/VSCODE.code-workspace # 通过终端启动 Visual Studio Cod 按照 Gemini 的分析,报错的根源已经超出了 macOS 和 Git 的范畴,这是 PicoKey 固件(针对 RP2350 芯片)在生成底层密码学签名时的一个 Bug。 -OpenSSH 的安全校验极其严苛(通常基于 OpenSSL 库)。如果 PicoKey 发回的签名在长度、字节对齐或格式规范上哪怕有 1 bit 不符合严格的 FIDO2 SSH 规范,OpenSSH 就会拒绝解析这串数据,直接抛出 invalid format?(格式无效),以防范中间人攻击。 \ No newline at end of file +OpenSSH 的安全校验极其严苛(通常基于 OpenSSL 库)。如果 PicoKey 发回的签名在长度、字节对齐或格式规范上哪怕有 1 bit 不符合严格的 FIDO2 SSH 规范,OpenSSH 就会拒绝解析这串数据,直接抛出 invalid format?(格式无效),以防范中间人攻击。 + +## macOS Tahoe 26.4 挂载网络存储 + +创建挂载文件夹。 + +``` bash +sudo mkdir -p /System/Volumes/Data/mnt/ +``` + +修改挂载配置文件。 + +``` bash +sudo nano /etc/auto_master +``` + +``` title="/etc/auto_master" +/System/Volumes/Data/mnt/ auto_mount_config -nosuid,noowners +``` + +配置对应挂载点的配置。 + +``` bash +sudo nano /etc/auto_mount_config +``` + +``` title="/etc/auto_mount_config" + -fstype=smbfs,soft,nobrowse ://username:password@ip/folder-name + +Media -fstype=smbfs,soft,nobrowse ://cattom:password@192.168.1.7/Media +``` + +*密码需 [URL 编码](https://www.bejson.com/enc/urlencode/)* + +> 举例: +> +> 密码为 `A#QJAY$yMY%@K0En` ,经过编码后的密码为 `A%23QJAY%24yMY%25%40K0En` + +最后,刷新挂载配置。 + +``` bash +sudo automount -vc +``` \ No newline at end of file