vscode remote-ssh无法连接到服务器

时间:2020-09-10 18:24:46

标签: visual-studio-code ssh vagrant

我一直在通过使用vscode remote-ssh连接到Vagrant(vartualbox)进行本地开发。 但是当我重新启动流浪汉并尝试远程连接时 我收到“已达到时间限制”和“无法获取远程环境”,并且无法连接。 我可以用“ vagrant ssh”和“ ssh command”连接,但不能。

错误日志

[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

0 个答案:

没有答案