已关闭
[Bug]: 客户现场提问:该命令删除的并不只是 openGauss 创建的互信信息,而是当前用户整个 .ssh 目录,可能同时删除 #8458
hemiao3787创建于  8月31日关闭于  27 天前
hemiao3787成员
8月31日 创建

测试类型

SQL功能

测试版本

7.0.0LTS

问题描述

该命令删除的并不只是 openGauss 创建的互信信息,而是当前用户整个 .ssh 目录,可能同时删除:
用户已有的 SSH 公钥和私钥;
authorized_keys;
known_hosts;
SSH 客户端配置文件 config。示例缺少删除范围、执行用户、备份要求及风险提示,属于代码样例安全说明和注释规范不足,可能造成已有 SSH 登录配置不可恢复地丢失。
改进建议: 明确具体需要删除或修改的文件和条目,执行前增加备份步骤,并避免使用针对整个 .ssh 目录的递归删除命令。
https://gitcode.com/opengauss/openGauss-server/blob/master/README.md![image.png](https://raw.gitcode.com/user-images/assets/5089689/ec4eb788-68f3-4ed3-9560-4cd922b531ba/image.png 'image.png')

操作系统和硬件信息

NA

测试环境

企业版单机

被测功能

预置条件

操作步骤

NA

预期输出

实际输出

NA

日志信息

NA

提单组织

社区用户

测试代码

likedislike
Hhemiao3787成员
8月31日 添加了label:bug
opengauss_bot
opengauss_bot成员
8月31日 评论:

This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.

likedislike
opengauss_botopengauss_bot成员
8月31日 将 TestManager 设为负责人
opengauss_bot
opengauss_bot成员
8月31日 评论:

Welcome To openGauss Community

Hey @hemiao3787 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: StorageEngine, AI, CM, CloudNative, SecurityTechnology, SQLEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @libiao2024, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @Igali, @bihua111, @cailei19, @h_ray, @levy53071, @libiao2024, @lihaixiao, @mrzack, @wangfeihuo, @wuyuechuan, @xiong_xjun, @zhangfengzhi123, @zhangxubo, @zhangzq131, @zjh_hw .

likedislike
opengauss_botopengauss_bot成员
8月31日 添加了label:sig/Tools
zhangxubozhangxubo成员
8月31日 关联了看板:openGauss 7.0.0-LTS
zhangxubozhangxubo成员
8月31日 将 zhangxubo 设为负责人
zhangxubozhangxubo成员
8月31日 关联了pull request:更新官网readme错误地方
zhangxubozhangxubo成员
8月31日 关联了pull request:更新官网readme不正确地方
zhangxubozhangxubo成员
8月31日 关联了pull request:update readme info
shenzheng4shenzheng4成员
9月3日 移除了负责人 TestManager
zhangxubo
zhangxubo成员
9月9日 评论:
zhangxubozhangxubo成员
9月9日 issue状态由 待办的 改变为 待回归
l1azzzy
l1azzzy成员
27 天前 评论:

验收日期:2026-9-15
验收结论:验收通过
验收版本:7.0.0.B023
image.png

likedislike
l1azzzyl1azzzy成员
27 天前 issue状态由 待回归 改变为 已验收
l1azzzyl1azzzy成员
27 天前 关闭了 issue
zhangxubo
zhangxubo成员
2 天前 评论:
likedislike