Questions tagged [vscode-remote-ssh]

107 questions
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
5
votes
1 answer

Remote-Containers VS Code extension doesn't recognize a git repository

I have a repository on an AWS instance. I can connect to the instance with VS Code via ssh and open the repository remotely. There is a dev container image on that instance that I use to run the code from a shell. I would like VS Code on my local…
corazza
  • 31,222
  • 37
  • 115
  • 186
5
votes
2 answers

Visual Studio Code Remote SSH Permission Denied (public key)

I'm using Mac OS and can succesfully connect via terminal and ssh to the host with the command ssh -i ~/full/path/to/private_key name@ip But when I try to use the exact same command in Visual Studio Code using Remote-SSH "Connect to Host", it…
Astralpirate
  • 83
  • 1
  • 6
4
votes
0 answers

Visual Studio Code remote-ssh created too many vscode-server processes

I got too many processes releated to vscode-server on my remote server. I've used remoted-SSH extension on this server about half a year. And it seems like every time i started a connection, the process will be created and stay alive even if i…
4
votes
2 answers

VS Code Remote-SSH won't reconnect to one specific working directory on remote Ubuntu host

I'm using VSCode 1.72.2 with Remote-SSH v0.90.1 on Windows to develop against an AWS EC2 VM running Ubuntu 22.04 LTS. A couple days ago, I was working in my project source folder in /opt/t4/ on the target host. When I was finished, I stopped the…
sprint_ska
  • 353
  • 4
  • 9
3
votes
0 answers

Rebasing with VSCode as git default editor in a "Remote SSH" connection

There are many questions throughout SO about using VSCode as git's default editor. The answer to all of them is to set git config --global core.editor "code --wait" (or "code -w") However, this isn't behaving properly for me. I don't know if it's…
Wasabi
  • 2,879
  • 3
  • 26
  • 48
3
votes
0 answers

How secure is VSCode Remote - SSH for the local machine?

I’ve been looking at Remote - SSH and found the following in the notes: Using Remote-SSH opens a connection between your local machine and the remote. Only use Remote-SSH to connect to secure remote machines that you trust and that are owned by a…
3
votes
0 answers

vscode server failing to shut down after disconnect

My team has been using VS Code Remote pretty successfully for the past few weeks. Our setup is a heavily modified version of this one, which uses an AWS EC2 instance as the remote server. In order to keep costs down, each server is set to shut off…
mbklein
  • 455
  • 6
  • 14
3
votes
0 answers

VSCode SSH auto-open terminal and run commands

I use VSCode with the Remote - SSH extension to connect to a remote dev enviroment. During development on the remote machine, I use integrated terminal to view application logs. At this moment, I have to open new terminals and run commands manually,…
DIRECTcut
  • 140
  • 9
2
votes
1 answer

How do I directly open a remote vscode workspace using the command line?

Currently, given the following SSH configuration in the ~/.ssh/config file: Host cdd User TKTK HostName TKTK IdentityFile ~/.ssh/id_rsa CertificateFile ~/.ssh/id_rsa-cert.pub I can use VSCode CLI to open any $folder, using: code…
Al Johri
  • 1,729
  • 22
  • 23
2
votes
0 answers

How can I stop my ec2 server from crashing when I use the "Remote - SSH" extension?

Every time I connect to my ec2 server with Microsoft's "Remote - SSH" VSCode extention it crashes my server and I have to manually goto the AWS console and stop/start the instance. Is there any way to fix this? I am also using venv, if that has…
2
votes
0 answers

What is the security model of VSCode Remote Development?

What is the security model of VSCode Remote Development? If the remote server is fully controlled by an attacker, is it possible for him/her to run arbitrary code on my local machine? Is there any PoC for this? If the answer is yes, does Restricted…
zzh1996
  • 480
  • 4
  • 13
2
votes
1 answer

ssh works on putty and terminal but not vscode Remote ssh (Error: connection could not be established)

I recently came across this issue with the Vscode remote ssh extension. Everything was working fine but ssh suddenly has issues (connection could not be established, connection timed out, Permission Denied(public key, password)) Running ssh on…
Chowder
  • 96
  • 1
  • 7
2
votes
1 answer

Visual Studio Code Remote Edit git authentication issue

I've been pulling my hair out with this for a while now. Running Visual Studio Code (1.65.2) on Windows 10. So I have a remote SSH connection to a linux machine, on which I have directory, which is a git repository and is synced to Github. Whenever…
2
votes
1 answer

Why are VSCode extensions not working in SSH

I am using the Remote-SSH extension. When I SSH to a local VM that has Linux, or far away to my uni's pc lab, all my VSCode local extensions don't work, it doesn't show under the extensions pane -> local installed. So doing the keyboard shortcut for…
1
2 3 4 5 6 7 8