无法ssh远程连接服务器

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

TraeCode CN
版本: 3.3.91
VSCode 版本: 1.107.1
提交: 5ef571c9a0ddd3fccf8d962233dec413a2c79dd3
日期: 2026-08-18T16:25:48.509Z
Electron: 39.2.7-release.1.49.0 (aha)
Node.js: 22.21.1
V8: 14.2.231.27-electron.0
OS: Windows_NT x64 10.0.26200
构建版本: 2.3.73737
设备ID: 1c813461478d663b37e71100c980171baf90ffead940b239868e3477cd1382b8
Device Id: 2627147132617962

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

无法ssh远程连接服务器,提示网络连接中断

复现步骤(如何才能重现这个 Bug/问题?):
1.只要远程连接服务器就会重现

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

2026-08-21T11:48:39.781+08:00 [info] initBaseClient log sessionId: c1331c65-0b05-44a9-a3ee-b0f711d824d2, runtime: node

2026-08-21T11:48:39.781+08:00 [info] [Remote-SSH (TRAE)] activated

2026-08-21T11:48:39.781+08:00 [info] [1787284119773_510268]Resolving ssh remote authority ‘ssh-remote+7b22686f73744e616d65223a223132372e302e302e31222c2266726f6d436f6e666967223a747275657d’ (attempt #1)

2026-08-21T11:48:39.949+08:00 [info] [ServerConfig] enableCkgAhaRequest: true

2026-08-21T11:48:39.950+08:00 [info] [ServerConfig] enableSingletonCueServer: true

2026-08-21T11:48:39.951+08:00 [info] [1787284119773_510268][ResolvePipeline] Starting pipeline execution

2026-08-21T11:48:39.951+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 1/7: establish_ssh_connection

2026-08-21T11:48:39.951+08:00 [info] [1787284119773_510268][establish_ssh_connection] :rocket: Step started: Establish SSH Connection

2026-08-21T11:48:39.952+08:00 [info] [1787284119773_510268][EstablishSSHStep] Starting SSH connection establishment

2026-08-21T11:48:40.158+08:00 [info] [1787284119773_510268][SSH] Connecting to 127.0.0.1

2026-08-21T11:48:40.176+08:00 [info] [1787284119773_510268][SSH] Full SSH command: C:\WINDOWS\System32\OpenSSH\ssh.exe -v -T -D 50714 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=10 -o ServerAliveCountMax=3 127.0.0.1

2026-08-21T11:48:40.176+08:00 [info] [1787284119773_510268][SSH] Starting connection

2026-08-21T11:48:40.177+08:00 [info] [1787284119773_510268][SSH AskPass] Pipe listening: \\?\pipe\icube-askpass-undefined@127.0.0.1-1787284120176-236636bb

2026-08-21T11:48:40.177+08:00 [info] [1787284119773_510268][SSH AskPass] askpass script: c:\Users\zhao\AppData\Local\Programs\Trae CN\resources\app\extensions\cloudide.icube-remote-ssh\out\askpass-main.js

2026-08-21T11:48:40.187+08:00 [info] [1787284119773_510268][SSH] AskPass environment variables set: {“SSH_ASKPASS”:“C:\\Users\\zhao\\AppData\\Local\\Temp\\trae-ssh-askpass-d1i1pbyu\\askpass.cmd”,“SSH_ASKPASS_REQUIRE”:“force”,“DISPLAY”:“0”,“VSCODE_SSH_ASKPASS_NODE”:“C:\\Users\\zhao\\AppData\\Local\\Programs\\Trae CN\\Trae CN.exe”,“VSCODE_SSH_ASKPASS_MAIN”:“c:\\Users\\zhao\\AppData\\Local\\Programs\\Trae CN\\resources\\app\\extensions\\cloudide.icube-remote-ssh\\out\\askpass-main.js”,“VSCODE_SSH_ASKPASS_HANDLE”:“\\\\?\\pipe\\icube-askpass-undefined@127.0.0.1-1787284120176-236636bb”,“VSCODE_SSH_ASKPASS_EXTRA_ARGS”:“”}

2026-08-21T11:48:40.187+08:00 [info] [1787284119773_510268][SSH] Local server process started with PID: 38376, server details: {“serverId":"undefined@127.0.0.1”,“sshCommand”:“C:\\WINDOWS\\System32\\OpenSSH\\ssh.exe”,“sshArgs”:[“-v”,“-T”,“-D”,“50714”,“-o”,“StrictHostKeyChecking=no”,“-o”,“UserKnownHostsFile=/dev/null”,“-o”,“ServerAliveInterval=10”,“-o”,“ServerAliveCountMax=3”,“127.0.0.1”],“ipcHandlePath”:“\\\\?\\pipe\\icube-ssh-undefined@127.0.0.1-1787284120175-da379063”,“serverDataFolderName”:“.trae-cn-server”,“dataFilePath”:“C:\\Users\\zhao\\AppData\\Local\\Temp\\trae-ssh-undefined_127.0.0.1-35196-0870f83b637e.json”}

2026-08-21T11:48:40.187+08:00 [info] [1787284119773_510268][SSH] State transition: initializing → waiting_for_server: {“reason”:“started waiting for server”,“duration”:0,“newStateTimeout”:5400000}

2026-08-21T11:48:40.278+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“Connection established.”,“category”:“connection”}

2026-08-21T11:48:41.203+08:00 [info] [1787284119773_510268][SSH] localServerProcess is ready, executing remote script

2026-08-21T11:48:41.203+08:00 [info] [1787284119773_510268][SSH] State transition: waiting_for_server → establishing: {“reason”:“local server ready”,“duration”:1016,“newStateTimeout”:60000}

2026-08-21T11:48:41.203+08:00 [info] [1787284119773_510268][SSH] Executing remote validation script in ESTABLISHING state

2026-08-21T11:48:52.110+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“get_agent_identities: ssh_get_authentication_socket: No such file or directory”,“category”:“auth”}

2026-08-21T11:48:52.316+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“Authentications that can continue: publickey,password”,“category”:“auth”}

2026-08-21T11:48:52.317+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“Next authentication method: publickey”,“category”:“auth”}

2026-08-21T11:48:52.393+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“Authentications that can continue: publickey,password”,“category”:“auth”}

2026-08-21T11:48:52.394+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“Next authentication method: password”,“category”:“auth”}

2026-08-21T11:48:52.504+08:00 [info] [1787284119773_510268][SSH] Authentication required: {"type":“password”,“request”:"dds@127.0.0.1’s password: ",“isRetry”:false,“attempt”:1}

2026-08-21T11:48:52.504+08:00 [info] [1787284119773_510268][SSH] State transition: establishing → waiting_for_auth: {“reason”:“password authentication required (attempt 1)”,“duration”:11301,“newStateTimeout”:300000}

2026-08-21T11:48:52.504+08:00 [info] [1787284119773_510268][ResolveInteractionEngine] Using user interaction handler ‘password-input’ for type ‘password_input’

2026-08-21T11:48:56.501+08:00 [info] [1787284119773_510268][PasswordInputInteraction] Password cached for session

2026-08-21T11:48:56.501+08:00 [info] [1787284119773_510268][SSH] Authentication provided: {"type":“password”,“request”:"dds@127.0.0.1’s password: ",“attempt”:1}

2026-08-21T11:48:56.639+08:00 [info] [1787284119773_510268][SSH] SSH authentication progress: {“message”:“Authentication or connection progress detected”,“output”:“Authenticated to 127.0.0.1 ([127.0.0.1]:1022) using \“password\”.\r\n”}

2026-08-21T11:48:56.639+08:00 [info] [1787284119773_510268][SSH] Detected SOCKS proxy listening on ::1:50714

2026-08-21T11:48:56.639+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“Local connections to LOCALHOST:50714 forwarded to remote address socks:0”,“category”:“connection”}

2026-08-21T11:48:56.640+08:00 [info] [1787284119773_510268][SSH] Detected SOCKS proxy listening on 127.0.0.1:50714

2026-08-21T11:48:56.640+08:00 [info] [1787284119773_510268][SSH] SSH authentication progress: {“message”:“Authentication or connection progress detected”,“output”:“debug1: channel 0: new port-listener [port listener] (inactive timeout: 0)\r\ndebug1: Local forwarding listening on 127.0.0.1 port 50714.\r\n”}

2026-08-21T11:48:56.640+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“channel 0: new port-listener [port listener] (inactive timeout: 0)”,“category”:“channel”}

2026-08-21T11:48:56.640+08:00 [info] [1787284119773_510268][SSH] SSH debug info: {“level”:“debug1”,“message”:“channel 1: new port-listener [port listener] (inactive timeout: 0)”,“category”:“channel”}

2026-08-21T11:49:01.082+08:00 [info] [1787284119773_510268][SSH] Connection validation successful: {“output”:“/bin/bash\nc5dffde7a966: running\n”}

2026-08-21T11:49:01.082+08:00 [info] [1787284119773_510268][SSH] State transition: waiting_for_auth → connected: {“reason”:“connection established”,“duration”:8578,“newStateTimeout”:0}

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][SSH] Connection established

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][EstablishSSHStep] SSH connection event received

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][EstablishSSHStep] Password verified and cached

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][EstablishSSHStep] SSH connection established successfully

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][establish_ssh_connection] :white_check_mark: Step completed successfully in 21132ms

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘establish_ssh_connection’ completed in 21132ms

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 2/7: check_system_requirements

2026-08-21T11:49:01.083+08:00 [info] [1787284119773_510268][check_system_requirements] :rocket: Step started: Check System Requirements

2026-08-21T11:49:01.084+08:00 [info] [1787284119773_510268][CheckSystemStep] Starting system requirements check, enhancedCompatibilityMode:remote.SSH.socksProxyConnectionTimeout

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][CheckSystemStep] System info collected: {

“platform”: “linux”,

“arch”: “x86_64”,

“serverArch”: “x64”,

“osReleaseId”: “ubuntu”,

“osVersionId”: “24.04”,

“glibcVersion”: “2.39”,

“region”: “CN”,

“downloadTool”: “curl”,

“decompressTool”: “tar”,

“hasXz”: true,

“hasGzip”: true,

“noProxyByted”: “false”,

“tmpDir”: “/run/user/1000”

}

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][check_system_requirements] :white_check_mark: Step completed successfully in 1411ms

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘check_system_requirements’ completed in 1411ms

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 3/7: resolve_package_info

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][resolve_package_info] :rocket: Step started: Resolve Package Info

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][ResolvePackageInfoStep] Not enterprise package (type: TRAE_CN), skipping

2026-08-21T11:49:02.494+08:00 [info] [1787284119773_510268][resolve_package_info] :white_check_mark: Step completed successfully in 1ms

2026-08-21T11:49:02.495+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘resolve_package_info’ completed in 1ms

2026-08-21T11:49:02.495+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 4/7: check_server_requirement

2026-08-21T11:49:02.495+08:00 [info] [1787284119773_510268][check_server_requirement] :rocket: Step started: Check Server Requirement

2026-08-21T11:49:02.495+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] Starting server requirement check

2026-08-21T11:49:02.497+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] dynamicVersion: , localVersion: 1198742665986_43

2026-08-21T11:49:02.497+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] Using local version: 1198742665986_43

2026-08-21T11:49:02.582+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] Local commit from product.json: 5ef571c9a0ddd3fccf8d962233dec413a2c79dd3

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] Remote version: 1198742665986_43, Local version: 5ef571c9a0ddd3fccf8d962233dec413a2c79dd3

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] Version mismatch - local: 5ef571c9a0ddd3fccf8d962233dec413a2c79dd3, remote: 1198742665986_43, installation required

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][CheckServerRequirementStep] Server installation required: true

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][check_server_requirement] :white_check_mark: Step completed successfully in 88ms

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘check_server_requirement’ completed in 88ms

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 5/7: install_remote_server

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][install_remote_server] :rocket: Step started: Install Remote Server

2026-08-21T11:49:02.583+08:00 [info] [1787284119773_510268][InstallServerStep] Starting remote server installation

2026-08-21T11:49:02.585+08:00 [info] [ServerConfig] enableCkgAhaRequest: true

2026-08-21T11:49:02.585+08:00 [info] [ServerConfig] enableSingletonCueServer: true

2026-08-21T11:49:02.617+08:00 [info] [1787284119773_510268][installCodeServer] Resolved package details: {“packageName”:“Trae CN-linux-x64-1198742665986_43.tar.xz”,“downloadUrl”:“https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/5ef571c9a0ddd3fccf8d962233dec413a2c79dd3/linux-debian10/Trae CN-linux-x64-1198742665986_43.tar.xz”,“downloadMD5Url”:“https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/5ef571c9a0ddd3fccf8d962233dec413a2c79dd3/linux-debian10/Trae CN-linux-x64-1198742665986_43.tar.xz.md5”,“remoteVersion”:“1198742665986_43”,“fetchToolUrl”:“https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/server/releases/stable/5ef571c9a0ddd3fccf8d962233dec413a2c79dd3/linux-debian10/fetch-linux-x64.tar.gz",“binFolder”:“stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10”,“compression”:".tar.xz”}

2026-08-21T11:49:02.617+08:00 [info] [1787284119773_510268][installCodeServer] Using preset remote version: 1198742665986_43

2026-08-21T11:49:04.278+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: ecc721b67413a838651c167a: [step] using_local_script

ecc721b67413a838651c167a: [step] trae_start

ecc721b67413a838651c167a: [step] server_dir

2026-08-21T11:49:04.619+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: ecc721b67413a838651c167a: [step] using_local_script

ecc721b67413a838651c167a: [step] trae_start

ecc721b67413a838651c167a: [step] server_dir

ecc721b67413a838651c167a: [step] check_region

2026-08-21T11:49:04.620+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: ecc721b67413a838651c167a: [step] using_local_script

ecc721b67413a838651c167a: [step] trae_start

ecc721b67413a838651c167a: [step] server_dir

ecc721b67413a838651c167a: [step] check_region

ecc721b67413a838651c167a: [step] get_remote_version

2026-08-21T11:49:04.633+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: ecc721b67413a838651c167a: [step] using_local_script

ecc721b67413a838651c167a: [step] trae_start

ecc721b67413a838651c167a: [step] server_dir

ecc721b67413a838651c167a: [step] check_region

ecc721b67413a838651c167a: [step] get_remote_version

Server already running (pid=1742, port=42465). Skipping lock.

2026-08-21T11:49:04.634+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: dir

ecc721b67413a838651c167a: [step] check_region

ecc721b67413a838651c167a: [step] get_remote_version

Server already running (pid=1742, port=42465). Skipping lock.

ecc721b67413a838651c167a: start

exitCode==0==

errorMessage====

listeningOn==42465==

connectionToken==df66a4a4-2e81-4a4b-9c9c-5c94f046f701==

logFile==/home/dds/.trae-cn-server/.stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-1c813461.log==

osReleaseId==ubuntu==

arch==x86_64==

platform==linux==

tmpDir==/run/user/1000==

downloadTool====

2026-08-21T11:49:04.652+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: 42, port=42465). Skipping lock.

ecc721b67413a838651c167a: start

exitCode==0==

errorMessage====

listeningOn==42465==

connectionToken==df66a4a4-2e81-4a4b-9c9c-5c94f046f701==

logFile==/home/dds/.trae-cn-server/.stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-1c813461.log==

osReleaseId==ubuntu==

arch==x86_64==

platform==linux==

tmpDir==/run/user/1000==

downloadTool====

downloadTime==0s==

httpsProxy====

regionDetectJson====

downloadRetryCount==0==

extractRetryCount==0==

ecc721b67413a838651c167a: end

2026-08-21T11:49:06.969+08:00 [info] [1787284119773_510268][SSH] General SSH error detected: {“severity”:“error”,“category”:“network”,“message”:“itemUrl: ‘’,”,“output”:" itemUrl: ‘’,\n publisherUrl: ‘’,\n resourceUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,\n extensionUrl"}

2026-08-21T11:49:06.969+08:00 [info] [1787284119773_510268][installCodeServer] Server install log: itemUrl: ‘’,

publisherUrl: ‘’,

resourceUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

extensionUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

controlUrl: ‘https://api.trae.com.cn/icube/api/v1/control-url/latest’,

nlsBaseUrl: ‘’

}

[03:46:48] [AhaIpcServer] NodeAhaIpcServer [AhaIPC] [client] start, routingId: 15068c14-b75d-4ac1-8e76-25e82e2daff5 , server: ai-agent , ipc: ipc:///home/dds/.trae-cn-server/socks/1742/5ef571c/aha/ai-agent.sock

[03:46:48] [AhaIpcServer] NodeAhaIpcServer [AhaIPC] [client:15068c14-b75d-4ac1-8e76-25e82e2daff5] using zeromq Dealer, server: ai-agent

[03:46:48] [AhaIpcServer] NodeAhaIpcServer [AhaIPC] [client:15068c14-b75d-4ac1-8e76-25e82e2daff5] socket connected, server: ai-agent

[03:46:48] [AhaIpcServer] NodeAhaIpcServer [AhaIPC] livenessManager: new peer created, id: _Router_

[03:46:48] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:46:48] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:48] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:48] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:46:48] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:48] update remote ttnet params success

[03:46:48] [AhaIpcServer] NodeAhaIpcServer [AhaIPC] [client:15068c14-b75d-4ac1-8e76-25e82e2daff5] server identified, name: ai-agent, serverId: 069329ab-06cd-48e3-8145-72e83dcc1eaf

[03:46:48] initialize extension gallery service with config {

fastestDomain: ‘https://api.trae.com.cn’,

hostedMarketplaceDomains: {

CN: 'api.trae.com.cn',

SG: 'api.trae.ai',

US: 'api.trae.ai',

USTTP: 'api.trae.ai'

},

servicePath: ‘/extensions/vscode/gallery’,

serviceUrl: ‘https://api.trae.com.cn/extensions/vscode/gallery’,

controlUrl: ‘https://api.trae.com.cn/icube/api/v1/control-url/latest’,

resourceUrlTemplateUrl: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

customExtensionsGalleryDomains: [

{

  domain: 'marketplace.visualstudio.com',

  path: '/\_apis/public/gallery',

  type: 'other'

},

{

  domain: 'open-vsx.org',

  path: '/vscode/gallery',

  type: 'original'

},

{

  domain: 'open-vsx.gitpod.io',

  path: '/vscode/gallery',

  type: 'mirror'

},

{

  domain: 'open-vsx.trae.ai',

  path: '/extensions/vscode/gallery',

  type: 'mirror'

},

{

  domain: 'open-vsx.trae.com.cn',

  path: '/extensions/vscode/gallery',

  type: 'mirror'

}

]

}

[03:46:48] initialize extension gallery service with default url {

serviceUrl: ‘https://api.trae.com.cn/extensions/vscode/gallery’,

itemUrl: ‘’,

publisherUrl: ‘’,

resourceUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

extensionUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

controlUrl: ‘https://api.trae.com.cn/icube/api/v1/control-url/latest’,

nlsBaseUrl: ‘’

}

[03:46:48] [AhaIpcServer] broadcast new event event:BootService.onDidBootConfigChanged

[03:46:50] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:46:50] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:51] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:46:51] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:52] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:46:52] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:52] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:46:52] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:53] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:46:55] RemoteBootService: storeRegion changed, refresh { countryCode: ‘’, countryCodeSrc: ‘’, region: ‘CN’ }

[03:46:55] update remote ttnet params success

[03:46:55] initialize extension gallery service with config {

fastestDomain: ‘https://api.trae.com.cn’,

hostedMarketplaceDomains: {

CN: 'api.trae.com.cn',

SG: 'api.trae.ai',

US: 'api.trae.ai',

USTTP: 'api.trae.ai'

},

servicePath: ‘/extensions/vscode/gallery’,

serviceUrl: ‘https://api.trae.com.cn/extensions/vscode/gallery’,

controlUrl: ‘https://api.trae.com.cn/icube/api/v1/control-url/latest’,

resourceUrlTemplateUrl: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

customExtensionsGalleryDomains: [

{

  domain: 'marketplace.visualstudio.com',

  path: '/\_apis/public/gallery',

  type: 'other'

},

{

  domain: 'open-vsx.org',

  path: '/vscode/gallery',

  type: 'original'

},

{

  domain: 'open-vsx.gitpod.io',

  path: '/vscode/gallery',

  type: 'mirror'

},

{

  domain: 'open-vsx.trae.ai',

  path: '/extensions/vscode/gallery',

  type: 'mirror'

},

{

  domain: 'open-vsx.trae.com.cn',

  path: '/extensions/vscode/gallery',

  type: 'mirror'

}

]

}

[03:46:55] initialize extension gallery service with default url {

serviceUrl: ‘https://api.trae.com.cn/extensions/vscode/gallery’,

itemUrl: ‘’,

publisherUrl: ‘’,

resourceUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

extensionUrlTemplate: ‘https://api.trae.com.cn/extensions/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}’,

controlUrl: ‘https://api.trae.com.cn/icube/api/v1/control-url/latest’,

nlsBaseUrl: ‘’

}

[03:46:55] [AhaIpcServer] broadcast new event event:BootService.onDidBootConfigChanged

[03:46:55] [git]: Couldn’t find message for key command.generateSimpleCommitMessage.

[03:47:05] Created extension scanner input for file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/extensions with language zh-cn [Object: null prototype] {}

[03:47:05] Created extension scanner input for file:///home/dds/.trae-cn-server/extensions/extensions.json with language zh-cn [Object: null prototype] {}

[03:47:08] [git]: Couldn’t find message for key command.generateSimpleCommitMessage.

[03:47:18] [127.0.0.1][5a15c4bc][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.

[03:47:18] [RemoteAhaIpcChannel] channel remove connection, connectionId: 3ff75185-967d-40f7-9754-50e4e3f56141

[03:47:18] [RemoteProcessMonitor] Failed to report: Canceled: Canceled

*at v (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:434)*

*at file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:493*

*at Object.dispose (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:8:21368)*

*at ci (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:8:33347)*

*at mp.dispose (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:4923)*

*at Il.value (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:5762)*

*at P.\_deliver (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2892)*

*at P.\_deliverQueue (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2983)*

*at P.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:3319)*

*at n9.\_cleanResources (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:76:13658)*

*at Il.value (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:76:12732)*

*at P.\_deliver (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2892)*

*at P.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:3212)*

*at Ac.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:36735)*

*at L7.\_receiveMessage (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:41786)*

*at Il.value (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:39040)*

*at P.\_deliver (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2892)*

*at P.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:3212)*

*at \_y.acceptChunk (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:34531)*

*at file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:33660*

*at Socket.t (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:74:1821)*

*at Socket.emit (node:events:518:28)*

*at addChunk (node:internal/streams/readable:561:12)*

*at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)*

*at Readable.push (node:internal/streams/readable:392:5)*

*at TCP.onStreamRead (node:internal/stream_base_commons:189:23)*

[03:47:18] [RemoteProcessMonitor] Failed to report: Canceled: Canceled

*at v (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:434)*

*at file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:493*

*at Object.dispose (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:8:21368)*

*at ci (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:8:33347)*

*at mp.dispose (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:4923)*

*at Il.value (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:66:5762)*

*at P.\_deliver (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2892)*

*at P.\_deliverQueue (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2983)*

*at P.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:3319)*

*at n9.\_cleanResources (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:76:13658)*

*at Il.value (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:76:12732)*

*at P.\_deliver (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2892)*

*at P.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:3212)*

*at Ac.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:36735)*

*at L7.\_receiveMessage (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:41786)*

*at Il.value (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:39040)*

*at P.\_deliver (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:2892)*

*at P.fire (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:27:3212)*

*at \_y.acceptChunk (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:34531)*

*at file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:71:33660*

*at Socket.t (file:///home/dds/.trae-cn-server/bin/stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-debian10/out/server-main.js:74:1821)*

*at Socket.emit (node:events:518:28)*

*at addChunk (node:internal/streams/readable:561:12)*

*at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)*

*at Readable.push (node:internal/streams/readable:392:5)*

*at TCP.onStreamRead (node:internal/stream_base_commons:189:23)*

[03:47:18] [127.0.0.1][ae7b4fd8][AhaIpcConnection] The client has disconnected gracefully, so the connection will be disposed.

[03:47:18] [RemoteAhaIpcChannel] channel remove connection, connectionId: cb7f1720-d28b-4aed-b3af-3d889516648d

[03:47:18] [AhaIpcServer] NodeAhaIpcServer [AhaIPC] [client:15068c14-b75d-4ac1-8e76-25e82e2daff5] disconnect, server: ai-agent

[03:47:56] [RemoteProcessMonitor] can not report, no renderer connection

[03:48:01] [RemoteProcessMonitor] can not report, no renderer connection

[03:48:47] [AhaIpcServer] NodeAhaIpcServer handleRequest [2] BootService.getBootConfig undefined

[03:48:47] [AhaIpcServer] NodeAhaIpcServer handleRequest [2] BootService.getBootConfig success hasResult: true duration: 0ms

[03:48:51] [AhaIpcServer] NodeAhaIpcServer handleRequest [3] BootService.getBootConfig undefined

[03:48:51] [AhaIpcServer] NodeAhaIpcServer handleRequest [3] BootService.getBootConfig success hasResult: true duration: 0ms

[03:48:56] [RemoteProcessMonitor] can not report, no renderer connection

[03:49:01] [RemoteProcessMonitor] can not report, no renderer connection

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268]Server install result: {

‘’: undefined,

exitCode: ‘0’,

errorMessage: ‘’,

listeningOn: ‘42465’,

connectionToken: ‘df66a4a4-2e81-4a4b-9c9c-5c94f046f701’,

logFile: ‘/home/dds/.trae-cn-server/.stable-5ef571c9a0ddd3fccf8d962233dec413a2c79dd3-1c813461.log’,

osReleaseId: ‘ubuntu’,

arch: ‘x86_64’,

platform: ‘linux’,

tmpDir: ‘/run/user/1000’,

downloadTool: ‘’,

downloadTime: ‘0s’,

httpsProxy: ‘’,

regionDetectJson: ‘’,

downloadRetryCount: ‘0’,

extractRetryCount: ‘0’

}

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268]Server install step: {

using_local_script: ‘true’,

trae_start: ‘true’,

server_dir: ‘true’,

check_region: ‘true’,

get_remote_version: ‘true’

}

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][InstallServerStep] Remote server installation completed successfully

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][install_remote_server] :white_check_mark: Step completed successfully in 4388ms

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘install_remote_server’ completed in 4388ms

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 6/7: local_install_remote_server

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][local_install_remote_server] :rocket: Step started: Local Install Remote Server

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][LocalInstallServerStep] Remote installation succeeded, skipping local installation

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][local_install_remote_server] :white_check_mark: Step completed successfully in 0ms

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘local_install_remote_server’ completed in 0ms

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][ResolvePipeline] Executing step 7/7: configure_tunnel

2026-08-21T11:49:06.971+08:00 [info] [1787284119773_510268][configure_tunnel] :rocket: Step started: Configure Remote Server Tunnels

2026-08-21T11:49:06.972+08:00 [info] [1787284119773_510268][ConfigureTunnelStep] Starting tunnel configuration

2026-08-21T11:49:06.972+08:00 [info] [1787284119773_510268][SSH] Creating forwarding 54859(local) => 50714(socks) => 42465(remote)

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][ConfigureTunnelStep] Tunnel configuration completed successfully

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][configure_tunnel] :white_check_mark: Step completed successfully in 1ms

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][ResolvePipeline] Step ‘configure_tunnel’ completed in 1ms

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][ResolvePipeline] Building resolver result: mainTunnel.localPort=54859, mainTunnel.remotePort=42465, hasConnectionToken=true, tokenLength=36, hasSshConnection=true, socksPort=50714, listeningOn=42465

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][ResolvePipeline] Using ManagedResolvedAuthority with SOCKS proxy to remote port 42465, socksPort=50714, connectionToken=df66a4a4…

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][ResolvePipeline] Pipeline execution completed successfully

2026-08-21T11:49:06.973+08:00 [info] [1787284119773_510268][RefactoredResolver] Pipeline execution completed successfully

2026-08-21T11:49:06.978+08:00 [info] [RemoteSSHNetworkMonitor] network monitor is disabled

2026-08-21T11:49:07.025+08:00 [info] [1787284119773_510268][ResolvePipeline] ManagedResolvedAuthority factory called - VS Code requesting new connection to remote port 42465

2026-08-21T11:49:07.025+08:00 [info] [1787284119773_510268][SSH ManagedSocket] Creating SOCKS connection to localhost:42465 (attempt 1/3, timeout 5000ms)

2026-08-21T11:49:07.025+08:00 [info] [1787284119773_510268][ResolvePipeline] ManagedResolvedAuthority factory called - VS Code requesting new connection to remote port 42465

2026-08-21T11:49:07.025+08:00 [info] [1787284119773_510268][SSH ManagedSocket] Creating SOCKS connection to localhost:42465 (attempt 1/3, timeout 5000ms)

2026-08-21T11:49:07.026+08:00 [info] [1787284119773_510268][ResolvePipeline] ManagedResolvedAuthority factory called - VS Code requesting new connection to remote port 42465

2026-08-21T11:49:07.026+08:00 [info] [1787284119773_510268][SSH ManagedSocket] Creating SOCKS connection to localhost:42465 (attempt 1/3, timeout 5000ms)

2026-08-21T11:49:09.324+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49322] SOCKS connection established to localhost:42465

2026-08-21T11:49:09.324+08:00 [info] [1787284119773_510268][SSH ManagedSocket] Cached remote host: localhost

2026-08-21T11:49:09.324+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49323] SOCKS connection established to localhost:42465

2026-08-21T11:49:09.324+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49323] SOCKS connection established to localhost:42465

2026-08-21T11:49:09.331+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49322] First data sent to remote server: 264 bytes (8ms after connect)

2026-08-21T11:49:09.331+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49323] First data sent to remote server: 264 bytes (7ms after connect)

2026-08-21T11:49:09.331+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49323] First data sent to remote server: 264 bytes (7ms after connect)

2026-08-21T11:49:09.436+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49322] First data received from remote server: 129 bytes (latency=113ms since connect, 105ms since first send)

2026-08-21T11:49:09.437+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49323] First data received from remote server: 129 bytes (latency=113ms since connect, 106ms since first send)

2026-08-21T11:49:09.437+08:00 [info] [1787284119773_510268][SSH ManagedSocket][42465#49323] First data received from remote server: 129 bytes (latency=113ms since connect, 106ms since first send)

2026-08-21T11:49:34.242+08:00 [info] [1787284119773_510268][ResolvePipeline] ManagedResolvedAuthority factory called - VS Code requesting new connection to remote port 42465

2026-08-21T11:49:34.242+08:00 [info] [1787284119773_510268][SSH ManagedSocket] Creating SOCKS connection to localhost:42465 (attempt 1/1, timeout 5000ms)

2026-08-21T11:49:39.250+08:00 [error] [1787284119773_510268][SSH ManagedSocket] SOCKS connection to localhost failed (attempt 1/1): Proxy connection timed out

你好,从日志中的 Proxy connection timed out 来看,是在与远程服务器建立 SOCKS 代理连接时出现了超时。这通常与网络超时或代理配置有关。

你可以尝试以下操作进行排查:

  1. 在 TRAE 设置中搜索 remote.SSH.enhancedCompatibilityMode 并勾选该配置,然后重新尝试连接。
  2. 如果仍然超时,请通过本地终端 SSH 直接登录到服务器,执行以下命令清理服务端文件,然后再重新尝试连接:
    rm -rf ~/.trae-cn-server/{bin,.st*}
    

请问尝试以上操作后能否正常连接?

重启一下开发机试试

都已经操作无法正常连接

当前帖子里的信息还不足以形成可靠结论。请在本帖补充 TRAE IDE 版本、操作系统、复现步骤,以及可用的截图或日志。

重启试过了无效

找到了个相同情况的帖子
ssh连接失败,显示网络连接中断,MCP Server配置文件格式无效等等 - 帮助与支持 / 使用咨询 - TRAE 官方中文社区

1、目前trae ide为最新版本,cn版

2、本地操作系统win11,远程主机为Ubuntu

3、首先是在ssh正常连接时,突然经常中断要求重新输入密码连接。输入密码后能正常恢复一段时间,后有一次再也无法恢复,重启IDE,清空本地ssh配置重连均无效,于是尝试了以前常用的办法,删除了/root/.trae-cn /root/.trae-cn-server /root/.trae-server后重试依旧无效,并且在ssh配置页面卡死,后面又重新尝试删除了/root/.trae-cn /root/.trae-cn-server /root/.trae-server和/root/.trae-aicc /root/.trae重新配置连接,现在能进入ssh连接页面如下

配置界面卡死

服务器资源还够吗? 有可能是 GPU 资源不足导致进程被 OOM Kill,日志里显示远程服务器端主动断开

资源很够的

你用本地终端可以连接上吗