提示ssh私钥位置

This commit is contained in:
2026-01-08 15:38:01 +08:00
parent 1ba7452cf8
commit 7816b05c03

View File

@@ -26,6 +26,7 @@ if [ ! -f "$PRIV_KEY" ]; then
ssh-keygen -t ed25519 -f "$PRIV_KEY" -N "" ssh-keygen -t ed25519 -f "$PRIV_KEY" -N ""
else else
echo "已存在 SSH 密钥,跳过生成" echo "已存在 SSH 密钥,跳过生成"
echo "✅ SSH客户端私钥位于: $PRIV_KEY"
fi fi
# 复制公钥到普通目录,方便用户下载 # 复制公钥到普通目录,方便用户下载