Не удалось подключиться к серверу удаленного внутреннего узла (Ошибка: ошибка подключения: несоответствие версий, клиент отказался.) - Визуальный код - PullRequest
0 голосов
/ 04 марта 2020

пытается использовать remote-s sh с vscode, и я получил это.

[11:37:47.034] Log Level: 3
[11:37:47.037] remote-ssh@0.49.0
[11:37:47.037] linux x64
[11:37:47.040] SSH Resolver called for "ssh-remote+gochin_dev", attempt 1
[11:37:47.040] SSH Resolver called for host: gochin_dev
[11:37:47.041] Setting up SSH remote "gochin_dev"
[11:37:47.052] Using commit id "fd13e449f5f2fe300f187129d6065ed1cfad74d3" and quality "insider" for server
[11:37:47.054] Install and start server if needed
[11:37:47.062] Checking ssh with "ssh -V"
[11:37:47.085] > OpenSSH_8.2p1, OpenSSL 1.1.1d 10 Sep 2019
[11:37:47.097] Using SSH config file "/home/min/.ssh/gochin_dev"
[11:37:47.097] Running script with connection command: ssh -T -D 39655 -o ConnectTimeout=15 -F /home/min/.ssh/gochin_dev gochin_dev bash
[11:37:48.550] > e9c54b699fa3: running
[11:37:48.551] Got some output, clearing connection timeout
[11:37:48.615] > Acquiring lock on /home/ec2-user/.vscode-server-oss/bin/fd13e449f5f2fe300f187129d6065ed1cfad74d3/vscode-remote-lock.ec2-user.fd13e449f5f2fe300f187129d6065ed1cfad74d3

Found existing installation at /home/ec2-user/.vscode-server-oss/bin/fd13e449f5f2fe300f187129d6065ed1cfad74d3...
[11:37:48.676] > Found running server...

Reminder: You may only use this software with Visual Studio family products,
as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
[11:37:48.734] > Checking server status on port 42183 with wget
[11:37:48.798] > e9c54b699fa3: start

sshAuthSock====
agentPort==42183==
osReleaseId==amzn==
arch==x86_64==
webUiAccessToken====
tmpDir==/run/user/1000==
e9c54b699fa3: end
[11:37:48.799] Received install output:
sshAuthSock====
agentPort==42183==
osReleaseId==amzn==
arch==x86_64==
webUiAccessToken====
tmpDir==/run/user/1000==

[11:37:48.804] Remote server is listening on port 42183
[11:37:48.805] Parsed server configuration: {"agentPort":42183,"osReleaseId":"amzn","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/run/user/1000"}
[11:37:48.812] Starting forwarding server. localPort 44563 -> socksPort 39655 -> remotePort 42183
[11:37:48.813] Forwarding server listening on 44563
[11:37:48.814] Waiting for ssh tunnel to be ready
[11:37:48.818] [Forwarding server 44563] Got connection 0
[11:37:48.827] Tunneled remote port 42183 to local port 44563
[11:37:48.828] Resolved "ssh-remote+gochin_dev" to "127.0.0.1:44563"
[11:37:48.885] ------

[11:37:48.938] [Forwarding server 44563] Got connection 1
[11:37:48.939] [Forwarding server 44563] Got connection 2

это мой удаленный лог sh. Я использую ОС: Linux x64 5.4.22-1-MANJARO vscode версия: 1.42.1 nodejs: 12.4.0 электрон: 6.1.7

Если требуется дополнительная информация, пожалуйста, спросите. (Я не совсем уверен, что я должен сказать ..) Пожалуйста, помогите ...

1 Ответ

0 голосов
/ 28 марта 2020

Та же проблема здесь. Вы должны использовать пакет VSCode от Microsoft, а не тот из вашего дистрибутива. Пакет от Manjaro устанавливает VSCode OSS , а расширение S SH не похоже на это. Попробуйте использовать пакет visual-studio-code-bin от AUR.

...