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
101
votes
12 answers

How to save a file in vscode-remote SSH with a non-root user privileges

I am not able to save any files on my remote server with VSCode Remote SSH because I am not a root user. I've followed the official documentation about how to set up ssh with SSH config file but even if my user as sudo privileges, I can't find any…
Geoff
  • 1,113
  • 2
  • 7
  • 6
87
votes
32 answers

VScode remote connection error: The process tried to write to a nonexistent pipe

I use vscode with remote-ssh to connect my server, after configuring, I want to connect my host, but it failed, the dialog box display:"could not establish connection to XX, The process tried to write to a nonexistent pipe." output: [16:45:20.916]…
douyu
  • 2,377
  • 2
  • 14
  • 27
56
votes
5 answers

Using "Remote SSH" in VSCode on a target machine that only allows inbound SSH connections

Is there a way to use the VSCode Remote SSH extension to interact with a remote host that does not allow outbound internet connections? Is it possible to download the vscode-server files from another system and copy to host? I read this but I can't…
Fakhamatia
  • 1,202
  • 4
  • 13
  • 24
55
votes
4 answers

Is there a way to reconnect to a disconnected VS Code Remote SSH connection?

When you're running VS Code Remote SSH and loose network connectivity over a long period of time and return to VS Code, the status on the bottom left show's "Disconnected from SSH: ". However, there doesn't seem to be a way to reconnect the session.…
smartexpert
  • 2,625
  • 3
  • 24
  • 41
55
votes
2 answers

How do we remove ssh targets from Remote Explorer

The Remote Explorer sidebar has an obvious icon for adding new targets but I can't find an option for removing or editing a target. In my case, servers' IPs change frequently so they just continue to add up in the sidebar with now way of cleaning it…
Lucian Thorr
  • 1,997
  • 1
  • 21
  • 29
51
votes
9 answers

VSCode in WSL: how to sudo a root file so I can edit it

WSL v.1 -- VSCode v1.40.1 (using 'Remote - WSL' extension 40.3) How to open a root-owned file for edit using sudo and VSCode? (without running as root) If I open a root file without sudo, I can't edit it (expected): $ code…
47
votes
3 answers

How to change vscode-server directory

I am trying to use vscode remote ssh extension and connect to Linux machine that has access to my files. Vscode install the server on the Linux machine under user home directory where due to company policy I have very limited quota . Is there a way…
dvir libhaber
  • 473
  • 1
  • 4
  • 4
40
votes
13 answers

I've already setup the ssh key, but VSCode keeps asking for password

I'm using a macbook(MacOS) to connect to a remote Ubuntu server. I copied the public ssh key to the server using ssh-copy-id and checked that the ssh key works on the terminal. When I do ssh username@x.x.x.x, connection is made without asking for…
sukrama
  • 661
  • 1
  • 5
  • 8
40
votes
4 answers

How to kill VSCode remote services on Ubuntu Host

I just updated VSCode Remote Insider and I can't connect to my host through VSCode anymore. I tried to uninstall my local VSCode Insider and restart it, but it didn't help. Then, I removed the .vscode-remote-insider directory on my host. However,…
Shawn Guo
  • 513
  • 1
  • 4
  • 7
37
votes
2 answers

keep Running Jupyter notebook with VSCode on remote server (SSH) after disconnecting

i'm working with VSCode on remote server via ssh with the jupyter notebook extension. but when im disconnect from the session the process of the code is stopped. is there a way to run the notebook from the VSCode with a backgroung process with tools…
idanso
  • 373
  • 3
  • 6
37
votes
10 answers

VS Code: connect a docker container in a remote server

I want to work in a container in a remote server. But it doesn't work. Environment: Local: Windows 10 Local Terminal for ssh: WSL in Windows 10 Server: Ubuntu 18.04 I checked these two…
Hakjin Lee
  • 471
  • 1
  • 4
  • 4
32
votes
7 answers

VS Code Remote-SSH: The vscode server failed to start SSH

I'm trying to connect to a server via remote-ssh extension for Visual Studio Code, however, I'm getting the following error: The vscode server failed to start SSH Everything is fine on the server-side, and the connection to this host worked fine…
whoisraibolt
  • 2,082
  • 3
  • 22
  • 45
30
votes
9 answers

Can I SSH from WSL in Visual Studio Code?

I am using WSL on Windows 10 to program, and recently discovered that VSCode can be used to edit programs through SSH. However, I normally SSH into my university's computers through WSL so I can access the files on those systems and use their…
Dhruva Gowda Storz
  • 411
  • 1
  • 4
  • 5
28
votes
4 answers

VsCode Remote SSH .vscode-server taking up a lot of space

I got an alert this morning for disk space in /home on a multi user remote SSH dev environment server. Running partition -$xdev -type f -ls | sort -k 7 -r -n | head -20 I saw that the largest directories are .vscode-server with space nearing almost…
ecaepp
  • 423
  • 1
  • 4
  • 9
27
votes
3 answers

Multiple devcontainers in vscode-remote

I have a project that creates multiple Docker images. I would like to setup a devcontainer in vscode-remote for each image so that I may spin up a container for each image. I only need to spin up and connect to one container/image at a time. Is it…
Bidski
  • 435
  • 1
  • 4
  • 6
1
2 3
57 58