一、问题背景
在使用 Kiro(Open Remote SSH 扩展)连接远程服务器(AlmaLinux,GPU 节点)时,出现无法连接的问题,主要报错包括:
Couldn't get identities from OpenSSH agent Failed to connect to agent Unable to establish SSL connection. Error downloading server from https://prod.download.desktop.kiro.dev/...
导致 Kiro Server 无法在远程服务器安装并启动,从而连接失败。
二、问题总体结论
❗ 这是一个'本地 SSH Agent 问题 + 远程服务器 HTTPS 下载失败'的组合问题
- 本地问题:Windows 的 ssh-agent 服务被禁用,未运行。
- 远程问题(核心失败原因):远程服务器无法通过 HTTPS 正常下载 kiro-server(SSL / CA / 出网受限)。
三、问题一:Windows 本地 ssh-agent 未启动
1️⃣ 现象
PowerShell 中执行:
Get-Service ssh-agent
结果:
Status Name DisplayName ------ ---- ----------- Stopped ssh-agent OpenSSH Authentication Agent
执行:
ssh-add -L
报错:
Error connecting to agent: No such file or directory
2️⃣ 原因
- Windows 的 OpenSSH Authentication Agent 服务被禁用。
- ssh-add 无法连接到 agent 管道。
Kiro / Remote-SSH 报错:
Couldn't get identities from OpenSSH agent
四、解决方案一:启用并启动 ssh-agent(推荐)
✅ 方法一:管理员 PowerShell(最稳)
右键 PowerShell → 以管理员身份运行,执行:
Set-Service -Name ssh-agent -StartupType Automatic
Start-Service ssh-agent
Get-Service ssh-agent
期望结果:
Status Name DisplayName ------ ---- ----------- Running ssh-agent OpenSSH Authentication Agent






