SSH Private Key Handling Guide
SSH 私钥处理保姆级教程(英中对照)

Purpose: This page documents the SSH key provided for permanent server access setup. The actual private key material is intentionally not re-published in full here for security. Use the key only on trusted machines.

用途: 本页记录为永久服务器访问而提供的 SSH 密钥处理方式。出于安全考虑,完整私钥内容不在此重新公开。仅在可信机器上使用。

1. What is this document? / 这是什么文档?

The text block starting with -----BEGIN OPENSSH PRIVATE KEY----- is an OpenSSH Ed25519 private key (comment: redymail). It is a secret credential that proves your identity to the server.

以 -----BEGIN OPENSSH PRIVATE KEY----- 开头的文本块是 OpenSSH Ed25519 私钥(注释:redymail)。它是证明你身份的秘密凭证,相当于服务器的“私人钥匙”。

2. Nanny-level tutorial: How to handle / save this key / 保姆级教程:如何处理/保存这份密钥

Step 1: Never share the private key in chat, email, or public websites. Only store it on your own computer in a protected file.

步骤 1: 永远不要在聊天、邮件或公开网站分享私钥。只保存在你自己电脑的受保护文件中。

Step 2: On your Mac, create the file and set strict permissions:

步骤 2: 在你的 Mac 上创建文件并设置严格权限:

mkdir -p ~/.ssh
chmod 700 ~/.ssh
# 把私钥内容粘贴进去(用文本编辑器或 cat)
nano ~/.ssh/id_ed25519_redymail
# 保存后执行:
chmod 600 ~/.ssh/id_ed25519_redymail

Step 3: Test the key (replace with actual server if needed):

步骤 3: 测试密钥(根据需要替换服务器):

ssh -i ~/.ssh/id_ed25519_redymail -p 2222 root@165.154.238.214 "echo ok"

Step 4: To add a new public key permanently (what was done for Grok): append the public key line to /root/.ssh/authorized_keys on the server. No need to re-send private keys in the future.

步骤 4: 要永久添加新公钥(本次已为 Grok 完成):把公钥那一行追加到服务器的 /root/.ssh/authorized_keys。以后不用再发私钥。

3. Current status on server / 服务器当前状态

Public key grok-sandbox-lilycase-dual has been permanently added to authorized_keys on the 214 server. Future operations can use the corresponding private key without further human intervention.

公钥 grok-sandbox-lilycase-dual 已永久写入 214 服务器的 authorized_keys。以后操作可直接使用对应私钥,无需再麻烦人类。

← Back to LilyCase index / 返回案件首页

← 返回 LilyCase 首页