# SSH 密钥备份(zhiwei-ima-sandbox) 此目录备份知微沙箱用于推送 Gitee 的 ssh 密钥对,防止沙箱重置导致 `~/.ssh` 丢失、无法再 push。 文件: - `id_ed25519` :私钥(明文,敏感!) - `id_ed25519.pub` :公钥(已添加到 Gitee 账户 SSH 公钥) ## 恢复步骤(沙箱重置后) 1. 从本仓库拉取 / 下载 `id_ed25519` 与 `id_ed25519.pub` 2. 放入 `~/.ssh/`,设权限: `chmod 600 ~/.ssh/id_ed25519 && chmod 644 ~/.ssh/id_ed25519.pub` 3. `ssh-keyscan -t ed25519,rsa gitee.com >> ~/.ssh/known_hosts` 4. git remote 设为 `git@gitee.com:lilozhao/zhiwei-ima-memory.git` 即可恢复 push ## 安全提醒 `id_ed25519` 是明文私钥。本仓库为私人仓库,请勿转为公开,也不要把私钥泄露给他人; 如怀疑泄露,立即在 Gitee 删除对应 SSH 公钥并重新生成密钥对。