diff --git a/frontend/src/views/Dashboard/Dashboard.js b/frontend/src/views/Dashboard/Dashboard.js index c27a09b..a192492 100644 --- a/frontend/src/views/Dashboard/Dashboard.js +++ b/frontend/src/views/Dashboard/Dashboard.js @@ -160,8 +160,6 @@ export function useDashboard() { server_create: "创建服务器", server_update: "更新服务器", server_delete: "删除服务器", - ssh_key_create: "添加 SSH 私钥", - ssh_key_delete: "删除 SSH 私钥", renewal_run: "执行自动续期", }; const taskStageLabels = { diff --git a/frontend/src/views/Dashboard/DashboardNavigation.js b/frontend/src/views/Dashboard/DashboardNavigation.js index a9b4d3c..41ee77c 100644 --- a/frontend/src/views/Dashboard/DashboardNavigation.js +++ b/frontend/src/views/Dashboard/DashboardNavigation.js @@ -5,7 +5,7 @@ export const dashboardSections = [ { id: "activity", label: "运行概览", group: "总览", hint: "查看证书有效期、续期覆盖和任务执行情况" }, { id: "projects", label: "项目与成员", group: "证书与部署", hint: "查看有权访问的项目并管理项目成员角色" }, { id: "domains", label: "域名配置", group: "证书与部署", hint: "管理域名、申请证书和执行部署" }, - { id: "servers", label: "部署服务器", group: "证书与部署", hint: "配置部署目标及 SSH 认证方式" }, + { id: "servers", label: "部署服务器", group: "证书与部署", hint: "配置部署目标及 SSH 密码认证" }, { id: "dns-accounts", label: "DNS 账户管理", group: "证书与部署", hint: "查看已配置的 DNS 账号及归属用户,凭据标识脱敏显示" }, { id: "users", label: "用户管理", group: "系统管理", hint: "管理登录账号、角色与使用状态" }, ]; diff --git a/frontend/src/views/Dashboard/SSHKeyModal.vue b/frontend/src/views/Dashboard/SSHKeyModal.vue index 91404a4..61bfc75 100644 --- a/frontend/src/views/Dashboard/SSHKeyModal.vue +++ b/frontend/src/views/Dashboard/SSHKeyModal.vue @@ -1,240 +1,3 @@ - - - - - - - 安全凭据 - 添加 SSH 私钥 - - - × - - - - - - - 不会准备 SSH 密钥? - 按下面三步操作,完成生成、安装公钥和录入私钥。 - - 新手引导 - - - - 1 - - 在本机生成密钥 - 打开 PowerShell、终端或命令提示符,复制下面的命令执行。 - - - - 2 - - 把公钥放到服务器 - 公钥放入服务器的授权文件,私钥不要粘贴到服务器。 - - - - 3 - - 录入私钥并保存 - 可以直接粘贴,也可以选择本机私钥文件,Scert 会加密保存。 - - - - - - Windows - - - Linux / macOS - - - - 本次密钥文件名 - {{ sshKeyFileName }} - 每次随机生成 - - - - 本地私钥位置 - {{ sshKeyPrivatePath }} - - - 本地公钥位置 - {{ sshKeyPublicPath }} - - - 远程登录目标 - {{ sshKeyCommandUsername }}@{{ sshKeyCommandHost }} - - - - - 生成命令 - - 复制命令 - - - {{ sshKeyCommands[sshKeyPlatform] }} - - - - 安装公钥命令 - - 复制命令 - - - {{ sshPublicKeyCommands[sshKeyPlatform] }} - - 本地公钥文件就是上面显示的随机路径;安装后会追加到远程用户的 - ~/.ssh/authorized_keys。每台主机、每次新建配置都会生成新的文件名。 - - - - 懒人方式:如果你能登录服务器控制台,只需执行生成命令,再把随机路径中的公钥内容追加到授权文件,最后在下方选择私钥文件即可。 - - - - 私钥名称 - 读取本机私钥文件 可选,读取后仍需点击加密保存 - 私钥内容 - 支持 RSA、ECDSA、Ed25519 和 OpenSSH 私钥 - - 私钥口令 未加密私钥请留空 - {{ sshKeyPassphraseVisible ? "隐藏口令" : "显示口令" }} - - - 保存后私钥和口令只进入本机加密敏感信息存储,后续接口不会返回明文。 - - {{ sshKeyFormError }} - - - 取消 - {{ sshKeySaving ? "加密保存中……" : "加密保存" }} - - - - - - - + - - -
安全凭据
{{ sshKeyFileName }}
{{ sshKeyPrivatePath }}
{{ sshKeyPublicPath }}
{{ sshKeyCommandUsername }}@{{ sshKeyCommandHost }}
{{ sshKeyCommands[sshKeyPlatform] }}
{{ sshPublicKeyCommands[sshKeyPlatform] }}
~/.ssh/authorized_keys
{{ sshKeyFormError }}