gpt4 book ai didi

visual-studio-code - 无法从服务器输出 : bash: no job control in this shell 解析远程端口

转载 作者:行者123 更新时间:2023-12-04 15:50:00 27 4
gpt4 key购买 nike

我正在尝试使用 VSCode - Insiders 使用 Remote - SSH 插件在远程 AWS 机器中的 docker 容器上运行代码。我已经打开了一个终端并像这样设置了端口转发:ssh -L 2201:localhost:2222 user@host -N -i ~/.ssh/id_rsa .然后在 VSCode 中我尝试连接到 root@localhost它启动了,但随后给了我一条错误消息:

> Found existing installation...
> Found running server...
>
> bash: no job control in this shell
"install" terminal command done
Received install output: bash: no job control in this shell
Failed to parse remote port from server output: bash: no job control in this shell

几天前我开始做这个过程,它奏效了。昨天它进进出出一点,今天它根本不起作用。我试过将其关闭再打开,但无法使其正常工作。如果相关,我在 MacOS 上使用 Mojave OS。

编辑:

神奇的是,它今天(第二天)第一次起作用了。我仍然有兴趣知道下次它打破时如何解决这个问题。如果这有帮助,这里是它工作时的输出:
SSH Resolver called for "ssh-remote+7b22686..."
SSH Resolver called for host: root@localhost
Setting up SSH remote "localhost"
Using commit id "473af338..." and quality "insider" for server
Using SSH config file "/Users/user/config"
Install and start server if needed
> Found existing installation...
> Found running server...
>
> bash: no job control in this shell
> 368805d0-03...==38466==
"install" terminal command done
Received install output: 368805d0-03...==38466==
Server is listening on port 38466
Using SSH config file "/Users/user/config"
Spawning tunnel with: ssh -F /Users/user/config root@localhost -N -L localhost:39003:localhost:38466
Spawned SSH tunnel between local port 39003 and remote port 38466
Waiting for ssh tunnel to be ready
Tunneling remote port 38466 to local port 39003
Resolving "ssh-remote+7b22686f737..." to "localhost:39003", attempt: 1

编辑 2:现在(第二天)它不再工作了。

编辑 3:我在 ~/config 中有一个配置文件。以下是内容:
Host *
User root
Port 2201
IdentityFile ~/id_rsa

最佳答案

在上面展示的具体实现中,你有 User root在您的配置中并使用 root@localhost 登录,所以你有两次你的用户名。保持配置文件不变,只需输入 localhost在 VSCode 中。这仍然不能解决不稳定问题,但确实解决了一个问题。

关于visual-studio-code - 无法从服务器输出 : bash: no job control in this shell 解析远程端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56070388/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com