Как удвоить s sh с vscode - PullRequest
       76

Как удвоить s sh с vscode

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

Для ввода sh на удаленную станцию ​​я делаю следующее:

ssh -L 4001:connect.iop.kcl.ac.uk:4000 username1@cana.host.institution

Затем меня спрашивают пароль, который я ввожу, и затем я делаю:

ssh -YX username2@otherserver.other.institution

и меня просят ввести другой пароль, после чего я нахожусь там, где я хочу быть.

Я хочу установить это в коде с помощью Remote- S SH расширение, но у меня возникают трудности

Когда я пытаюсь добавить первый шаг (s sh -L 4001: connect.iop.kcl.a c .uk: 4000 username1@cana.host.institution ), мой файл конфигурации выглядит следующим образом:

Host cana.iop.kcl.ac.uk
  HostName cana.iop.kcl.ac.uk
  LocalForward 4001:connect.iop.kcl.ac.uk:4000
  User dmzromc

Но когда я пытаюсь подключиться, я получаю следующую ошибку:

[16:23:45.992] Log Level: 3
[16:23:45.993] remote-ssh@0.49.0
[16:23:45.994] darwin x64
[16:23:45.995] SSH Resolver called for "ssh-remote+cana.host.institution", attempt 1
[16:23:45.995] SSH Resolver called for host: cana.host.institution
[16:23:45.995] Setting up SSH remote "cana.host.institution"
[16:23:46.020] Using commit id "78a4c91400152c0f27ba4d363eb56d2835f9903a" and quality "stable" for server
[16:23:46.023] Install and start server if needed
[16:23:46.031] Checking ssh with "ssh -V"
[16:23:46.071] > OpenSSH_7.9p1, LibreSSL 2.7.3
[16:23:46.075] Running script with connection command: ssh -T -D 55893 -o ConnectTimeout=15 cana.iop.kcl.ac.uk bash
[16:23:46.364] > /Users/user1/.ssh/config line 15: Missing target argument.
[16:23:46.364] Got some output, clearing connection timeout
[16:23:46.835] "install" terminal command done
[16:23:46.835] Install terminal quit with output: /Users/user1/.ssh/config line 15: Missing target argument.
[16:23:46.836] Received install output: /Users/user1/.ssh/config line 15: Missing target argument.
[16:23:46.837] Stopped parsing output early. Remaining text: /Users/user1/.ssh/config line 15: Missing target argument.
[16:23:46.837] Failed to parse remote port from server output
[16:23:46.838] Resolver error: 
[16:23:46.842] ------

Любой совет, который высоко ценится

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...