ssh远程开发连不上linux服务器

你的运行环境(版本号「点击帮助-关于-复制」):

TraeCode CN
版本: 3.3.104
VSCode 版本: 1.107.1
提交: 11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e
日期: 2026-09-20T06:54:58.977Z
Electron: 39.2.7-release.1.54.1 (aha)
Node.js: 22.21.1
V8: 14.2.231.27-electron.0
OS: Windows_NT x64 10.0.19045
构建版本: 2.3.87416
设备ID: bdd5daff86953e0b4375f89e2cb379eef7944f70bcbfee114c09041b7e5f25fe
Device Id: 1602434927220778

问题描述(你遇到了什么问题?):

ssh远程开发连不上linux服务器,局域网环境

复现步骤(如何才能重现这个 Bug/问题?):
1.首次连接局域网环境中linux设备,通过命令行或MobaX连接正常且能看到有很大磁盘余量和性能余量
2.ssh新建连接并建立首次连接时一直卡在右下角加载中
3.因为不了解传输模式,猜想了一下目前的模式后想确认下:是不是首次连接会缓存很多服务器内容到本地或本地配置到服务器;如果是这样的话想提个建议,ssh首次连接本身不在工作目录,是否可以简化初次连接,先当一个简单的ssh类似mobaX,真正打开工作区进行编码工作的时候再加载这些配置呢

报错信息或截图(如有):

请在此处粘贴截图或日志代码

当前帖子里的信息还不足以形成可靠结论。请在本帖补充以下信息以便进一步排查:

  • TRAE IDE 版本
  • 操作系统
  • 复现步骤
  • 可用的截图或日志(特别是从输出面板复制的 Remote-SSH 相关完整日志)


把这里的日志发一下

一直卡在Preparing local cache package中,没有输出

2026-09-30T10:55:01.157+08:00 [info] initBaseClient log sessionId: f191a0a5-1587-428d-8d5e-8fbd4360343c, runtime: node 
2026-09-30T10:55:01.157+08:00 [info] [Remote-SSH (TRAE)] activated 
2026-09-30T10:55:01.157+08:00 [info] [1790736901143_807293]Resolving ssh remote authority 'ssh-remote+7b22686f73744e616d65223a223139322e3136382e302e313536222c2266726f6d436f6e666967223a747275657d' (attempt #1) 
2026-09-30T10:55:01.259+08:00 [info] [ServerConfig] enableCkgAhaRequest: true 
2026-09-30T10:55:01.259+08:00 [info] [ServerConfig] enableSingletonCueServer: true 
2026-09-30T10:55:01.259+08:00 [info] [ServerConfig] enableHarness: false 
2026-09-30T10:55:01.263+08:00 [info] [1790736901143_807293][ResolvePipeline] Starting pipeline execution 
2026-09-30T10:55:01.263+08:00 [info] [1790736901143_807293][ResolvePipeline] Executing step 1/7: establish_ssh_connection 
2026-09-30T10:55:01.263+08:00 [info] [1790736901143_807293][ResolvePipeline] Waiting for system/network recovery before executing step 'establish_ssh_connection' 
2026-09-30T10:55:01.778+08:00 [info] [1790736901143_807293][establish_ssh_connection] 🚀 Step started: Establish SSH Connection 
2026-09-30T10:55:01.779+08:00 [info] [1790736901143_807293][establish_ssh_connection] Waiting for connection to stabilize... 
2026-09-30T10:55:02.293+08:00 [info] [1790736901143_807293][EstablishSSHStep] Starting SSH connection establishment 
2026-09-30T10:55:03.614+08:00 [info] [1790736901143_807293][SSH] Connecting to 192.168.0.156 
2026-09-30T10:55:03.662+08:00 [info] [1790736901143_807293][SSH] Full SSH command: C:\WINDOWS\System32\OpenSSH\ssh.exe -v -T -D 54995 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=10 -o ServerAliveCountMax=3 -o RemoteCommand=bash -l -c "exec bash --login" 192.168.0.156 
2026-09-30T10:55:03.662+08:00 [info] [1790736901143_807293][SSH] Starting connection 
2026-09-30T10:55:03.663+08:00 [info] [1790736901143_807293][SSH AskPass] Pipe listening: \\?\pipe\icube-askpass-undefined@192.168.0.156-1790736903662-bad6da3e 
2026-09-30T10:55:03.664+08:00 [info] [1790736901143_807293][SSH AskPass] askpass script: d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\askpass-main.js 
2026-09-30T10:55:03.682+08:00 [info] [1790736901143_807293][SSH] AskPass environment variables set: {"SSH_ASKPASS":"C:\\Users\\mark\\AppData\\Local\\Temp\\trae-ssh-askpass-axb0r0q9\\askpass.cmd","SSH_ASKPASS_REQUIRE":"force","DISPLAY":"0","VSCODE_SSH_ASKPASS_NODE":"D:\\Software\\Trae CN\\Trae CN.exe","VSCODE_SSH_ASKPASS_MAIN":"d:\\Software\\Trae CN\\resources\\app\\extensions\\cloudide.icube-remote-ssh\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\?\\pipe\\icube-askpass-undefined@192.168.0.156-1790736903662-bad6da3e","VSCODE_SSH_ASKPASS_EXTRA_ARGS":""} 
2026-09-30T10:55:03.682+08:00 [info] [1790736901143_807293][SSH] Local server process started with PID: 6296, server details: {"serverId":"undefined@192.168.0.156","sshCommand":"C:\\WINDOWS\\System32\\OpenSSH\\ssh.exe","sshArgs":["-v","-T","-D","54995","-o","StrictHostKeyChecking=no","-o","UserKnownHostsFile=/dev/null","-o","ServerAliveInterval=10","-o","ServerAliveCountMax=3","-o","RemoteCommand=bash -l -c \"exec bash --login\"","192.168.0.156"],"ipcHandlePath":"\\\\?\\pipe\\icube-ssh-undefined@192.168.0.156-1790736903661-84b3bf8d","serverDataFolderName":".trae-cn-server","dataFilePath":"C:\\Users\\mark\\AppData\\Local\\Temp\\trae-ssh-undefined_192.168.0.156-22428-cb887a86d045.json","unsetLocalEnv":[]} 
2026-09-30T10:55:03.683+08:00 [info] [1790736901143_807293][SSH] State transition: initializing → waiting_for_server: {"reason":"started waiting for server","duration":0,"newStateTimeout":5400000} 
2026-09-30T10:55:03.864+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"Connection established.","category":"connection"} 
2026-09-30T10:55:03.929+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"pubkey_prepare: ssh_get_authentication_socket: No such file or directory","category":"auth"} 
2026-09-30T10:55:03.994+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"Authentications that can continue: publickey,password","category":"auth"} 
2026-09-30T10:55:03.994+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"Next authentication method: publickey","category":"auth"} 
2026-09-30T10:55:04.006+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"Authentications that can continue: publickey,password","category":"auth"} 
2026-09-30T10:55:04.231+08:00 [info] [1790736901143_807293][SSH] Authentication required: {"type":"password","request":"nvidia@192.168.0.156's password: ","isRetry":false,"attempt":1} 
2026-09-30T10:55:04.231+08:00 [info] [1790736901143_807293][SSH] State transition: waiting_for_server → waiting_for_auth: {"reason":"password authentication required (attempt 1)","duration":548,"newStateTimeout":300000} 
2026-09-30T10:55:04.231+08:00 [info] [1790736901143_807293][ResolveInteractionEngine] Using user interaction handler 'password-input' for type 'password_input' 
2026-09-30T10:55:04.708+08:00 [info] [1790736901143_807293][SSH] localServerProcess is ready, executing remote script 
2026-09-30T10:55:04.708+08:00 [info] [1790736901143_807293][SSH] State transition: waiting_for_auth → establishing: {"reason":"local server ready","duration":477,"newStateTimeout":60000} 
2026-09-30T10:55:04.708+08:00 [info] [1790736901143_807293][SSH] Executing remote validation script in ESTABLISHING state 
2026-09-30T10:55:09.777+08:00 [info] [1790736901143_807293][PasswordInputInteraction] Password cached for session 
2026-09-30T10:55:09.778+08:00 [info] [1790736901143_807293][SSH] Authentication provided: {"type":"password","request":"nvidia@192.168.0.156's password: ","attempt":1} 
2026-09-30T10:55:09.918+08:00 [info] [1790736901143_807293][SSH] SSH authentication progress: {"message":"Authentication or connection progress detected","output":"debug1: Authentication succeeded (password).\r\n"} 
2026-09-30T10:55:09.918+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"Authentication succeeded (password).","category":"auth"} 
2026-09-30T10:55:09.919+08:00 [info] [1790736901143_807293][SSH] SSH authentication progress: {"message":"Authentication or connection progress detected","output":"Authenticated to 192.168.0.156 ([192.168.0.156]:22).\r\ndebug1: Local connections to LOCALHOST:54995 forwarded to remote address socks:0\r\n"} 
2026-09-30T10:55:09.919+08:00 [info] [1790736901143_807293][SSH] SSH debug info: {"level":"debug1","message":"Local connections to LOCALHOST:54995 forwarded to remote address socks:0","category":"connection"} 
2026-09-30T10:55:09.919+08:00 [info] [1790736901143_807293][SSH] Detected SOCKS proxy listening on ::1:54995 
2026-09-30T10:55:09.920+08:00 [info] [1790736901143_807293][SSH] Detected SOCKS proxy listening on 127.0.0.1:54995 
2026-09-30T10:55:09.920+08:00 [info] [1790736901143_807293][SSH] SSH authentication progress: {"message":"Authentication or connection progress detected","output":"debug1: channel 0: new [port listener]\r\ndebug1: Local forwarding listening on 127.0.0.1 port 54995.\r\ndebug1: channel 1: new [port listener]\r\n"} 
2026-09-30T10:55:10.550+08:00 [info] [1790736901143_807293][SSH] Connection validation successful: {"output":"2bda4ff0a938: running\n"} 
2026-09-30T10:55:10.550+08:00 [info] [1790736901143_807293][SSH] State transition: establishing → connected: {"reason":"connection established","duration":5842,"newStateTimeout":0} 
2026-09-30T10:55:10.550+08:00 [info] [1790736901143_807293][SSH] Connection established 
2026-09-30T10:55:10.550+08:00 [info] [1790736901143_807293][EstablishSSHStep] SSH connection event received 
2026-09-30T10:55:10.550+08:00 [info] [1790736901143_807293][EstablishSSHStep] Password verified and cached 
2026-09-30T10:55:10.551+08:00 [info] [1790736901143_807293][EstablishSSHStep] SSH connection established successfully 
2026-09-30T10:55:10.551+08:00 [info] [1790736901143_807293][establish_ssh_connection] ✅ Step completed successfully in 8773ms 
2026-09-30T10:55:10.551+08:00 [info] [1790736901143_807293][ResolvePipeline] Step 'establish_ssh_connection' completed in 9288ms 
2026-09-30T10:55:10.551+08:00 [info] [1790736901143_807293][ResolvePipeline] Executing step 2/7: check_system_requirements 
2026-09-30T10:55:10.551+08:00 [info] [1790736901143_807293][check_system_requirements] 🚀 Step started: Check System Requirements 
2026-09-30T10:55:10.552+08:00 [info] [1790736901143_807293][CheckSystemStep] Starting system requirements check, enhancedCompatibilityMode:false 
2026-09-30T10:55:12.606+08:00 [info] [1790736901143_807293][CheckSystemStep] System info collected: {
  "platform": "linux",
  "arch": "aarch64",
  "serverArch": "arm64",
  "osReleaseId": "ubuntu",
  "osVersionId": "22.04",
  "glibcVersion": "2.35",
  "downloadTool": "curl",
  "decompressTool": "tar",
  "hasXz": true,
  "hasGzip": true,
  "noProxyByted": "false",
  "tmpDir": "/run/user/1000"
}
2026-09-30T10:55:12.606+08:00 [info] [1790736901143_807293][CheckSystemStep] Glibc version requires Debian 10 compatibility 
2026-09-30T10:55:12.606+08:00 [info] [1790736901143_807293][check_system_requirements] ✅ Step completed successfully in 2055ms 
2026-09-30T10:55:12.606+08:00 [info] [1790736901143_807293][ResolvePipeline] Step 'check_system_requirements' completed in 2055ms 
2026-09-30T10:55:12.607+08:00 [info] [1790736901143_807293][ResolvePipeline] Executing step 3/7: resolve_package_info 
2026-09-30T10:55:12.607+08:00 [info] [1790736901143_807293][resolve_package_info] 🚀 Step started: Resolve Package Info 
2026-09-30T10:55:12.607+08:00 [info] [1790736901143_807293][ResolvePackageInfoStep] Not enterprise package (type: TRAE_CN), skipping 
2026-09-30T10:55:12.607+08:00 [info] [1790736901143_807293][resolve_package_info] ✅ Step completed successfully in 1ms 
2026-09-30T10:55:12.608+08:00 [info] [1790736901143_807293][ResolvePipeline] Step 'resolve_package_info' completed in 1ms 
2026-09-30T10:55:12.608+08:00 [info] [1790736901143_807293][ResolvePipeline] Executing step 4/7: check_server_requirement 
2026-09-30T10:55:12.608+08:00 [info] [1790736901143_807293][check_server_requirement] 🚀 Step started: Check Server Requirement 
2026-09-30T10:55:12.608+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Starting server requirement check 
2026-09-30T10:55:12.614+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] dynamicVersion: , localVersion: 1232067209986_2 
2026-09-30T10:55:12.614+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Using local version: 1232067209986_2 
2026-09-30T10:55:12.616+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Checking install lock: $HOME/.trae-cn-server/.resolve-lock-11ec4a1c-bdd5daff 
2026-09-30T10:55:12.880+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Install lock check result: code: 0, stdout: LOCK_PRESENT=false
COMMAND_EXECUTION_COMPLETED_f78ce5505364e852_0
, stderr:  
2026-09-30T10:55:13.140+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Server not found locally 
2026-09-30T10:55:13.140+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Remote version: 1232067209986_2, Local version: undefined 
2026-09-30T10:55:13.140+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Local server not found, installation required 
2026-09-30T10:55:13.140+08:00 [info] [1790736901143_807293][CheckServerRequirementStep] Server installation required: true 
2026-09-30T10:55:13.140+08:00 [info] [1790736901143_807293][check_server_requirement] ✅ Step completed successfully in 533ms 
2026-09-30T10:55:13.141+08:00 [info] [1790736901143_807293][ResolvePipeline] Step 'check_server_requirement' completed in 533ms 
2026-09-30T10:55:13.141+08:00 [info] [1790736901143_807293][ResolvePipeline] Executing step 5/7: install_remote_server 
2026-09-30T10:55:13.141+08:00 [info] [1790736901143_807293][install_remote_server] 🚀 Step started: Install Remote Server 
2026-09-30T10:55:13.143+08:00 [info] [1790736901143_807293][InstallServerStep] Starting remote server installation 
2026-09-30T10:55:13.318+08:00 [info] [1790736901143_807293][installCodeServer] Resolved package details: {"packageName":"Trae CN-linux-arm64-1232067209986_2.tar.xz","downloadUrl":"https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/Trae CN-linux-arm64-1232067209986_2.tar.xz","downloadMD5Url":"https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/Trae CN-linux-arm64-1232067209986_2.tar.xz.md5","remoteVersion":"1232067209986_2","fetchToolUrl":"https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz","binFolder":"stable-11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e-debian10","compression":".tar.xz"} 
2026-09-30T10:55:13.318+08:00 [info] [1790736901143_807293][installCodeServer] Using preset remote version: 1232067209986_2 
2026-09-30T10:55:13.979+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: f14a4a5b13fa6fbd5dc65a52: [step] using_local_script
f14a4a5b13fa6fbd5dc65a52: [step] trae_start

2026-09-30T10:55:13.986+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: f14a4a5b13fa6fbd5dc65a52: [step] using_local_script
f14a4a5b13fa6fbd5dc65a52: [step] trae_start
f14a4a5b13fa6fbd5dc65a52: [step] server_dir

2026-09-30T10:55:14.830+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: f14a4a5b13fa6fbd5dc65a52: [step] using_local_script
f14a4a5b13fa6fbd5dc65a52: [step] trae_start
f14a4a5b13fa6fbd5dc65a52: [step] server_dir
f14a4a5b13fa6fbd5dc65a52: [step] check_region

2026-09-30T10:55:14.830+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: f14a4a5b13fa6fbd5dc65a52: [step] using_local_script
f14a4a5b13fa6fbd5dc65a52: [step] trae_start
f14a4a5b13fa6fbd5dc65a52: [step] server_dir
f14a4a5b13fa6fbd5dc65a52: [step] check_region
f14a4a5b13fa6fbd5dc65a52: [step] get_remote_version

2026-09-30T10:55:14.882+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: f14a4a5b13fa6fbd5dc65a52: [step] using_local_script
f14a4a5b13fa6fbd5dc65a52: [step] trae_start
f14a4a5b13fa6fbd5dc65a52: [step] server_dir
f14a4a5b13fa6fbd5dc65a52: [step] check_region
f14a4a5b13fa6fbd5dc65a52: [step] get_remote_version
f14a4a5b13fa6fbd5dc65a52: [step] need_install_true

2026-09-30T10:55:14.887+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: f14a4a5b13fa6fbd5dc65a52: [step] using_local_script
f14a4a5b13fa6fbd5dc65a52: [step] trae_start
f14a4a5b13fa6fbd5dc65a52: [step] server_dir
f14a4a5b13fa6fbd5dc65a52: [step] check_region
f14a4a5b13fa6fbd5dc65a52: [step] get_remote_version
f14a4a5b13fa6fbd5dc65a52: [step] need_install_true
download fetch: https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz

2026-09-30T10:55:16.145+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"network","message":"curl: (60) SSL certificate problem: certificate is not yet valid","output":"curl: (60) SSL certificate problem: certificate is not yet valid\nMore details here: https://curl.se/docs/sslcerts.html\n\ncurl failed to verify the legitimacy of the server and therefore could not\nestab"} 
2026-09-30T10:55:16.145+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: rue
download fetch: https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

2026-09-30T10:55:16.148+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"fetch tool download failed or corrupted, falling back to curl/wget","output":"fetch tool download failed or corrupted, falling back to curl/wget\n"} 
2026-09-30T10:55:16.148+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget

2026-09-30T10:55:16.155+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: d
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
download fetch: https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz

2026-09-30T10:55:16.574+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
download fetch: https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not ye
2026-09-30T10:55:16.576+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"network","message":"t valid","output":"t valid\nMore details here: https://curl.se/docs/sslcerts.html\n\ncurl failed to verify the legitimacy of the server and therefore could not\nestablish a secure connection to it. To learn more about this "} 
2026-09-30T10:55:16.576+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: get
download fetch: https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

2026-09-30T10:55:16.576+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"fetch tool download failed or corrupted, falling back to curl/wget","output":"fetch tool download failed or corrupted, falling back to curl/wget\n"} 
2026-09-30T10:55:16.577+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget

2026-09-30T10:55:16.635+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:","output":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:\n  Issued certificate not yet valid.\nTo connect to lf-cdn.trae.com."} 
2026-09-30T10:55:16.635+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget

2026-09-30T10:55:16.672+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:","output":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:\n  Issued certificate not yet valid.\n"} 
2026-09-30T10:55:16.672+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget

2026-09-30T10:55:16.673+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget

2026-09-30T10:55:16.675+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: linux-arm64.tar.gz
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.

2026-09-30T10:55:16.675+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"Download failed, retry attempt 1...","output":"Download failed, retry attempt 1...\n"} 
2026-09-30T10:55:16.675+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: rtificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...

2026-09-30T10:55:17.728+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:","output":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:\n  Issued certificate not yet valid.\nTo connect to lf-cdn.trae.com."} 
2026-09-30T10:55:17.728+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: rtificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...

2026-09-30T10:55:17.768+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:","output":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:\n  Issued certificate not yet valid.\nTo connect to lf-cdn.trae.com."} 
2026-09-30T10:55:17.768+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: rtificate problem: certificate is not yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...

2026-09-30T10:55:17.770+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"Download failed, retry attempt 2...","output":"Download failed, retry attempt 2...\n"} 
2026-09-30T10:55:17.770+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: t yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...
Download failed, retry attempt 2...

2026-09-30T10:55:18.811+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:","output":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:\n  Issued certificate not yet valid.\nTo connect to lf-cdn.trae.com."} 
2026-09-30T10:55:18.811+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: t yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...
Download failed, retry attempt 2...

2026-09-30T10:55:18.873+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:","output":"ERROR: cannot verify lf-cdn.trae.com.cn's certificate, issued by ‘CN=RapidSSL TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’:\n  Issued certificate not yet valid.\nTo connect to lf-cdn.trae.com."} 
2026-09-30T10:55:18.873+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: t yet valid
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...
Download failed, retry attempt 2...

2026-09-30T10:55:18.874+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"Download failed, retry attempt 3...","output":"Download failed, retry attempt 3...\n"} 
2026-09-30T10:55:18.874+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: ://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...
Download failed, retry attempt 2...
Download failed, retry attempt 3...

2026-09-30T10:55:19.877+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"general","message":"Error: Download failed after 3 retry attempts","output":"Error: Download failed after 3 retry attempts\n"} 
2026-09-30T10:55:19.877+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
fetch tool download failed or corrupted, falling back to curl/wget
Warning: tar.xz compression is not supported on this system. Falling back to tar.gz.
Download failed, retry attempt 1...
Download failed, retry attempt 2...
Download failed, retry attempt 3...
Error: Download failed after 3 retry attempts

2026-09-30T10:55:19.878+08:00 [info] [1790736901143_807293][SSH] General SSH error detected: {"severity":"error","category":"network","message":"f14a4a5b13fa6fbd5dc65a52: start","output":"f14a4a5b13fa6fbd5dc65a52: start\nexitCode==2001==\nerrorMessage==Download server failed after 3 retry attempts==\nlisteningOn====\nconnectionToken====\nlogFile==/home/nvidia/.trae-cn-server/.stable-11ec4a1"} 
2026-09-30T10:55:19.878+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: 3 retry attempts
f14a4a5b13fa6fbd5dc65a52: start
exitCode==2001==
errorMessage==Download server failed after 3 retry attempts==
listeningOn====
connectionToken====
logFile==/home/nvidia/.trae-cn-server/.stable-11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e-bdd5daff.log==
osReleaseId==ubuntu==
arch==aarch64==
platform==linux==
tmpDir==/run/user/1000==
downloadTool==wget==
downloadTime==0s==
httpsProxy====
regionDetectJson====
downloadRetryCount==3==
extractRetryCount==0==
f14a4a5b13fa6fbd5dc65a52: end

2026-09-30T10:55:19.916+08:00 [info] [1790736901143_807293][installCodeServer] Server install log: no server logfile: /home/nvidia/.trae-cn-server/.stable-11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e-bdd5daff.log

2026-09-30T10:55:19.918+08:00 [info] [1790736901143_807293]Server install result: {
  '': undefined,
  exitCode: '2001',
  errorMessage: 'Download server failed after 3 retry attempts',
  listeningOn: '',
  connectionToken: '',
  logFile: '/home/nvidia/.trae-cn-server/.stable-11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e-bdd5daff.log',
  osReleaseId: 'ubuntu',
  arch: 'aarch64',
  platform: 'linux',
  tmpDir: '/run/user/1000',
  downloadTool: 'wget',
  downloadTime: '0s',
  httpsProxy: '',
  regionDetectJson: '',
  downloadRetryCount: '3',
  extractRetryCount: '0'
}
2026-09-30T10:55:19.918+08:00 [info] [1790736901143_807293]Server install step: {
  using_local_script: 'true',
  trae_start: 'true',
  server_dir: 'true',
  check_region: 'true',
  get_remote_version: 'true',
  need_install_true: 'true'
}
2026-09-30T10:55:19.919+08:00 [error] [1790736901143_807293][InstallServerStep] Server installation failed: server_download_error: exitCode: 2001, Download server failed after 3 retry attempts
    at v (d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:778268)
    at t.installCodeServer (d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:774629)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async a.executeImpl (d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:737918)
    at async a.execute (d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:608558)
    at async m.executeStep (d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:700193)
    at async m.execute (d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:697042)
    at async d:\Software\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\extension.js:2:598369 {
  [stack]: [Getter/Setter],
  [message]: 'exitCode: 2001, Download server failed after 3 retry attempts',
  name: 'server_download_error'
}
2026-09-30T10:55:19.919+08:00 [warning] [1790736901143_807293][install_remote_server] ⚠️ Step failed after 6778ms (retry available) 
2026-09-30T10:55:19.919+08:00 [info] [1790736901143_807293][ResolvePipeline] Step 'install_remote_server' failed in 6778ms 
2026-09-30T10:55:19.919+08:00 [info] [1790736901143_807293][ResolvePipeline] Jumping to step: local_install_remote_server 
2026-09-30T10:55:19.919+08:00 [info] [1790736901143_807293][ResolvePipeline] Executing step 6/7: local_install_remote_server 
2026-09-30T10:55:19.920+08:00 [info] [1790736901143_807293][local_install_remote_server] 🚀 Step started: Local Install Remote Server 
2026-09-30T10:55:19.921+08:00 [info] [1790736901143_807293][LocalInstallServerStep] Fallback to local installation after remote failure 
2026-09-30T10:55:19.921+08:00 [info] [1790736901143_807293][LocalInstallServerStep] Remote failure reason: exitCode: 2001, Download server failed after 3 retry attempts 
2026-09-30T10:55:19.923+08:00 [info] [1790736901143_807293][resolvePackageDetails] localVersion: 1232067209986_2 dynamicVersion:  
2026-09-30T10:55:19.923+08:00 [info] [1790736901143_807293][resolvePackageDetails] Loaded local version for commit 11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e: 1232067209986_2 
2026-09-30T10:55:20.011+08:00 [info] [1790736901143_807293][resolvePackageDetails] Resolved package details: {"packageName":"Trae CN-linux-arm64-1232067209986_2.tar.xz","downloadUrl":"https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/Trae CN-linux-arm64-1232067209986_2.tar.xz","downloadMD5Url":"https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/Trae CN-linux-arm64-1232067209986_2.tar.xz.md5","remoteVersion":"1232067209986_2"} 
2026-09-30T10:55:20.013+08:00 [info] [1790736901143_807293][LocalInstallServerStep] Checking if remote package exists: /run/user/1000/Trae CN-linux-arm64-1232067209986_2.tar.xz 
2026-09-30T10:55:20.304+08:00 [info] [1790736901143_807293][LocalInstallServerStep] Remote package does not exist, will transfer 
2026-09-30T10:55:20.305+08:00 [info] [1790736901143_807293]Downloading fetch tool: https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/11ec4a1cb1e8fe52bbfe5c40743c0aa2ee84f42e/linux-debian10/fetch-linux-arm64.tar.gz 

看这个日志是下载失败,但是网络是正常的,刚重启过机器

连上了,日期问题 :sweat_smile:

太好了,恭喜顺利连上!日志里确实提示了 certificate is not yet valid,这种通常就是设备系统时间不正确导致了 SSL 证书校验失败。

感谢分享最终的排查结果,这也能帮到遇到类似问题的其他开发者。后续使用中如果还有其他问题,随时在论坛交流!