vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

remote-container does not work

Open yushengjiexy opened this issue 1 year ago • 4 comments

I can connect the remote service by remote-ssh, but the remote-container dose not work. image

yushengjiexy avatar Sep 16 '22 01:09 yushengjiexy

could you help me?

yushengjiexy avatar Sep 16 '22 01:09 yushengjiexy

when i click on the button "Attach to running container", remote-containers show log image image

yushengjiexy avatar Sep 16 '22 02:09 yushengjiexy

Does ssh 10.44.171.206 /bin/sh work when you run it from the command line? Does it require any keyboard input?

chrmarti avatar Sep 19 '22 08:09 chrmarti

No, it dose not work. It require keyboard input, just like the following. image

yushengjiexy avatar Sep 20 '22 03:09 yushengjiexy

Hi, I'm having the same issues since the last Win11 22H2 update. I'm working in a Windows 11 PC connected through ssh to a Linux 22.04 LTS machine. In this machine, Docker is installed and I use it to create containers and to attach VSCode to them. I can connect to my remote machine with the Remote-SSH plugin, however I can't attach a VSCode window to the container anymore. It just hangs with this message image

The problem was raised by the recent Win11 update I just installed. Is there anything I can do? Tell me if you need more information!

mawanda-jun avatar Sep 22 '22 06:09 mawanda-jun

You could try using a private/public key-pair for authentication and on you local machine add the private key to the ssh-agent (which you first need to start in Windows' Services settings) using ssh-add. That will allow you to connect to the SSH server without additional keyboard input and might avoid the issue you are seeing.

chrmarti avatar Sep 29 '22 06:09 chrmarti

https://github.com/microsoft/vscode-remote-release/issues/7295#issuecomment-1273195599

Had same problem, already answered here. @chrmarti I think it worked without needing ssh keys just a month ago? Only requiring password just like ssh extension without keys.

martinerk0 avatar Oct 10 '22 11:10 martinerk0

What do you get for ssh -V?

chrmarti avatar Oct 11 '22 08:10 chrmarti

local: OpenSSH_7.6p1 Ubuntu-4ubuntu0.7, OpenSSL 1.0.2n 7 Dec 2017 host: OpenSSH_7.6p1 Ubuntu-4ubuntu0.5, OpenSSL 1.0.2n 7 Dec 2017

both are Ubuntu 18.04.6 LTS

martinerk0 avatar Oct 11 '22 12:10 martinerk0

Related: https://github.com/microsoft/vscode-remote-release/issues/7322

chrmarti avatar Oct 12 '22 06:10 chrmarti