Edit Snippets.md
Deploy / deploy (push) Successful in 1m6s

This commit is contained in:
2026-04-04 00:11:24 +08:00
parent 5b4b325e89
commit 02b5035645
2 changed files with 46 additions and 4 deletions
+1 -1
View File
@@ -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 |
+44 -2
View File
@@ -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)"
@@ -225,3 +225,45 @@ 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?(格式无效),以防范中间人攻击。
## macOS Tahoe 26.4 挂载网络存储
创建挂载文件夹。
``` bash
sudo mkdir -p /System/Volumes/Data/mnt/<volume-name>
```
修改挂载配置文件。
``` bash
sudo nano /etc/auto_master
```
``` title="/etc/auto_master"
/System/Volumes/Data/mnt/<volume-name> auto_mount_config -nosuid,noowners
```
配置对应挂载点的配置。
``` bash
sudo nano /etc/auto_mount_config
```
``` title="/etc/auto_mount_config"
<folder-name> -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
```