Fleet 1.38.89 SSH连接失败:Unknown SSH error及StreamCorruptedException
Fleet 1.38.89 SSH远程连接失败问题
我使用Fleet 1.38.89版本连接远程SSH开发环境,终端执行ssh <environment>可以正常访问,但Fleet无法建立连接。日志显示以下错误:
[20240810 06:53:00.663 ERROR FR@SUPERVISOR fleet.ssh.frontend.SshSupervisor] Unknown SSH error java.io.StreamCorruptedException: Incorrect identification (line too long): at line 8: PATH='/opt/homebrew/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bo at org.apache.sshd.osgi@2.12.1/org.apache.sshd.common.session.helpers.SessionHelper.doReadIdentification(SessionHelper.java:913) at org.apache.sshd.osgi@2.12.1/org.apache.sshd.client.session.AbstractClientSession.readIdentification(AbstractClientSession.java:525) at org.apache.sshd.osgi@2.12.1/org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:499) at org.apache.sshd.osgi@2.12.1/org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:64) at fleet.plugins.ssh.frontend/fleet.ssh.frontend.mina.proxycommand.ProxyCommandSession.reader(ProxyCommandSession.kt:62) at fleet.plugins.ssh.frontend/fleet.ssh.frontend.mina.proxycommand.ProxyCommandSession.access$reader(ProxyCommandSession.kt:25) at fleet.plugins.ssh.frontend/fleet.ssh.frontend.mina.proxycommand.ProxyCommandSession$reader$1.invokeSuspend(ProxyCommandSession.kt) at fleet.kotlin.runtime/kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at fleet.kotlin.runtime/kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at fleet.kotlin.runtime/kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125) at fleet.kotlin.runtime/kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at fleet.kotlin.runtime/kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608) at fleet.kotlin.runtime/kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873) at fleet.kotlin.runtime/kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763) at fleet.kotlin.runtime/kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750) [20240810 06:53:02.418 ERROR ??@?? f.s.f.m.p.ProxyCommandUtils] ProxyCommand '/opt/homebrew/bin/coder --global-config "/Users/<username>/Library/Application Support/coderv2" ssh --stdio <environment>' killed forcefully [20240810 06:53:03.167 ERROR ??@?? f.s.f.m.p.ProxyCommandUtils] ProxyCommand '/opt/homebrew/bin/coder --global-config "/Users/<username>/Library/Application Support/coderv2" ssh --stdio <environment>' killed forcefully
从日志来看,Fleet在读取SSH标识或处理ProxyCommand时存在问题。有没有人遇到过类似问题,或者能指出问题根源?
补充信息
- Fleet版本:1.38.89
- 终端SSH连接无异常
- 仅通过Fleet连接时出现问题
求助需求
求可行的临时解决办法,比如调整macOS SSH配置或其他修改。如果这是Fleet的bug,修复需要时间,我需要临时方案继续在SSH环境工作,恳请提供建议。
更新:主机配置
我用于Fleet的主机配置如下(主机名coder.my-workspace.main):
Host coder.my-workspace.main HostName coder.my-workspace.main MaxIdentificationLength 2048 ConnectTimeout=30 StrictHostKeyChecking=no UserKnownHostsFile=/dev/null LogLevel ERROR ProxyCommand /opt/homebrew/bin/coder --global-config "/Users/me/Library/Application Support/coderv2" ssh --stdio my-workspace.main
内容的提问来源于stack exchange,提问作者quarks
相关产品推荐
相关产品推荐

