今天升级 VSCode 后才开始出现这种情况。它可以很好地连接到我的一台 AWS 机器,但无法连接到已经正常工作了一段时间的机器。它与我的 ssh 密钥无关,因为即使我删除它,它仍然会得到相同的结果。
以下是我尝试远程 ssh 时在输出日志中得到的内容:
[15:00:18.550] Running script with connection command: ssh -T -D 57103 "DEV" bash
[15:00:18.552] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:00:18.744] > key_load_public: invalid format
> ]0;C:\WINDOWS\System32\cmd.exe
[15:00:18.745] Got some output, clearing connection timeout
[15:00:19.441] > warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)
[15:00:20.673] > 1b2d18264e08: running
[15:00:20.707] > Acquiring lock on /home/ubuntu/.vscode-server/bin/3c4e3df9e89829dce27b7b5c245083
> 06b151f30d/vscode-remote-lock.ubuntu.3c4e3df9e89829dce27b7b5c24508306b151f30d
[15:00:20.723] > Found existing installation at /home/ubuntu/.vscode-server/bin/3c4e3df9e89829dce
> 27b7b5c24508306b151f30d...
> Checking /home/ubuntu/.vscode-server/.3c4e3df9e89829dce27b7b5c24508306b151f30d.l
> og and /home/ubuntu/.vscode-server/.3c4e3df9e89829dce27b7b5c24508306b151f30d.pid …
Run Code Online (Sandbox Code Playgroud)