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


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 .


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









测试类型
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
操作系统和硬件信息
NA
测试环境
企业版单机
被测功能
预置条件
操作步骤
NA
预期输出
实际输出
NA
日志信息
NA
提单组织
社区用户
测试代码