Remote-SSH turns an SSH-accessible virtual machine into a practical VS Code workspace, avoiding the limitations of working exclusively in a terminal. section 5.1.1
A typical setup is:
- Install the Microsoft Remote-SSH extension. section 5.1.1
- Run the SSH configuration command, then open VS Code’s command palette. section 5.1.1
- Choose Remote-SSH: Open SSH Host… and select the VM’s SSH address. section 5.1.1
- Use the new VS Code window as if working locally. section 5.1.1
$ gcloud compute config-ssh
Use the SSH configuration command before selecting the remote host in VS Code. section 5.1.1
