From 93e73e8ff13afa2afa9f43a31d7b0a5565b48820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B5=A9?= <3116737282@qq.com> Date: Thu, 1 May 2025 11:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20git=20=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.tf | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/main.tf b/main.tf index d2bead8..1e25719 100644 --- a/main.tf +++ b/main.tf @@ -56,7 +56,7 @@ resource "coder_agent" "main" { chmod 700 ~/.ssh # 生成 SSH 密钥对,不设置密码 - ssh-keygen -t ed25519 -f ~/.ssh/git -N "" -C "${data.coder_workspace_owner.me.email}" + ssh-keygen -t ed25519 -f ~/.ssh/git -N "" -C "${data.coder_workspace_owner.me.name}(${data.coder_workspace_owner.me.email})-${data.coder_workspace.me.name}" # 创建 SSH 配置文件 cat > ~/.ssh/config <