我一直通过使用vscode远程ssh连接到Vagrant (vartualbox)进行本地开发。但当我重新开始流浪,并试图远程连接时,我得到了“时间限制”和“无法获取远程环境”,我无法连接。我可以连接到“流浪者ssh”和"ssh命令“,但我不能。
错误日志
[2020-09-11 02:37:51.947] [renderer3] [error] [remote-connection] The time limit has been reached for a connection. Error:
[2020-09-11 02:37:51.947] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:51.947] [renderer3] [error] [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
[2020-09-11 02:37:51.947] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.061] [renderer3] [error] Time limit reached: Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.221] [renderer3] [error] [remote-connection] The time limit has been reached for a connection. Error:
[2020-09-11 02:37:52.222] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.222] [renderer3] [error] [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
[2020-09-11 02:37:52.222] [renderer3] [error] Error: Time limit reached
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1879:292
[2020-09-11 02:37:52.258] [renderer3] [error] Could not fetch remote environment: Error: Could not fetch remote environment
at d.start (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5022:70)
at async k.createProcess (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5039:827)
[02:37:21.902] Starting forwarding server. localPort 55555 -> socksPort 54444 -> remotePort 43333
[02:37:21.902] Forwarding server listening on 55555
[02:37:21.902] Waiting for ssh tunnel to be ready
[02:37:21.904] [Forwarding server 55555] Got connection 0
[02:37:21.905] Tunneled remote port 43333 to local port 55555
[02:37:21.905] Resolved "ssh-remote+ruby02" to "127.0.0.1:55555"
[02:37:21.921] ------
[02:37:21.948] [Forwarding server 55555] Got connection 1
[02:37:21.949] [Forwarding server 55555] Got connection 2
[02:38:55.872] Picking SSH host
发布于 2022-01-21 13:59:49
试着这样做:
再次登录到远程计算机
https://stackoverflow.com/questions/63835623
复制相似问题