Questions tagged [vscode-remote]

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

868 questions
26
votes
4 answers

Does vscode remote support double ssh?

I have a gpu-server Server-A in office. The only way to access that server is through the office wired network. The office provides a proxy server Server-B. How I connect to the Server-A? I first ssh login Server-B, then in the bash of Server-B, ssh…
Qinsheng Zhang
  • 1,113
  • 1
  • 11
  • 19
25
votes
13 answers

EACCESS error when installing packages on WSL

I'm getting this error trying to NPM INSTALL packages on WSL from VS Code. npm ERR! Error: EACCES: permission denied, rename '/mnt/d/DEVRepo/PWS/functions/node_modules/cssstyle' -> '/mnt/d/DEVRepo/PWS/functions/node_modules/.cssstyle.DELETE' npm…
EzeTeja
  • 1,125
  • 1
  • 13
  • 21
24
votes
2 answers

VSCode Remote WSL Downloading Server Every Time

Every time I open Remote WSL, it downloads server. Even after download is completed, when I open VSCode and Remote WSL again, it starts downloading again. How to solve this so that it doesn't download server every time?
zibidigonzales
  • 338
  • 3
  • 9
24
votes
2 answers

Is there a way to get git to work properly from within a dev container using VS Code?

I am working with VS Code and I installed the Remote Development extension. I created a devcontainer for my Angular application. So far, everything works fine. The Dockerfile and the devcontainer.json files are pretty simple: Dockerfile: FROM…
michael
  • 787
  • 2
  • 6
  • 12
23
votes
6 answers

Is it possible to use the "code" command in SSH'ed terminal to open VS Code on local machine with SSH extension?

Something I love about VS Code is that when I am using a terminal in WSL, I can run code file.txt, and it will open that file with VS Code on my local using the WSL remote extension. Is it possible to do a similar thing with SSH? I.e., if I am…
jediahkatz
  • 231
  • 1
  • 2
  • 5
23
votes
10 answers

ssh in vscode error: Permission denied (publickey,password)

So I'm using the "Remote - SSH" plugin in VSCode to connect to my VPS and edit my code. I lost the connection, then had to hard-reset it after 30+ min. Now I can't access it with VSCode anymore [putty works] and get Could not establish connection to…
Naxey
  • 396
  • 1
  • 3
  • 12
23
votes
3 answers

How can I install vs-code-server manually and tell vs-code-remote?

When I try use remote-ssh connect to my server to install install vs-code-server, it hangs with these message: Install and start server if needed bash: no job control in this shell Installing... Downloading with wget It seems my server cannot…
Jacki
  • 231
  • 1
  • 2
  • 3
23
votes
1 answer

How can I change the color of the >< remote icon in the VS Code status bar?

I installed the VS Code Remote Development extensions but the green >< icon in the left of the status bar doesn't look good with my preferred theme. How do I change its color?
Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
22
votes
13 answers

VS Code connect to WSL Ubuntu 20.04 LTS, fail with error: Could not fetch remote environment

A few days ago I was working just fine with VS Code connected to WSL Ubuntu 20.04, then I did some updating on WSL, Ubuntu 20.04 LTS and VS Code and now I can not connect to WSL 20.04, and I always got those two messages, even when no…
22
votes
5 answers

Can't connect VS Code to Linux machine for remote development

I am getting this error on VS Code and have no clue why it fails [15:14:59.543] Log Level: 2 [15:14:59.555] remote-ssh@0.51.0 [15:14:59.555] win32 x64 [15:14:59.560] SSH Resolver called for "ssh-remote+xx.xx.xx.xx", attempt 1 [15:14:59.561] SSH…
Jonatan Aponte
  • 429
  • 1
  • 5
  • 10
20
votes
15 answers

VSCode Remote SSH Connection Failed

I'm trying to use the Remote-SSH extension to edit files on a Debian server. The SSH connection is established correctly but then I get an error message : Failed to connect to the remote extension host server And the log : [13:19:04.182] Remote…
Padd
  • 394
  • 1
  • 2
  • 13
19
votes
4 answers

How to connect VSCode to GCP instances

I am trying to connect VSCode to my GCP instances but am unable to. From a terminal, I can ssh into the machines with gcloud compute ssh my_machine_name but I'm not sure how to translate that into what VSCode Remote-SSH is looking for. When I…
jss367
  • 4,759
  • 14
  • 54
  • 76
19
votes
6 answers

Visual Studio Code Remote SSH uses Windows username instead of username in ssh_config

I'm using Visual Studio Code on Windows 7, along with Microsoft's Remote SSH extension. I added new remote host, and saved configuration in ssh_config file. When I open that file, everything looks ok, both User and Host values. However, when…
Milos
  • 981
  • 3
  • 16
  • 41
19
votes
5 answers

WSL2 terminal does not recognize Visual Studio Code

When I try to execute code from WSL, like this: cmd.exe wsl code . I get the following error: /bin/bash: code: command not found However, if I execute the same command but first run cmd.exe as an Administrator, vscode opens as expected. The…
kDar
  • 3,246
  • 4
  • 19
  • 23
18
votes
4 answers

Specify listening address 0.0.0.0 for forwarded port in VSCode Remote Containers

I am developing inside a docker container using the VSCode Remote Containers extension. I start a server inside the container which listens at port 3342 and would like to access the webpage using other devices in the same network. I forward port…
Alvin Leung
  • 668
  • 1
  • 5
  • 10
1
2
3
57 58