Lately, I was working on a project in Digital Ocean. I wanted to pull and access the folders there in my local Visual studio code. While Vs Code Documentation solves this, I want to provide a straight forward way to pull a remote server to your Vs Code.
This article assumes that your ssh is already configured and all you want to do is get the remote server locally.
Step 1:Install Remote-SSH extension
On VsCode, navigate to extensions and Install
Step 2: Configure SSH
i. Open the Vscode command Pallet(cmnd+shift+P) and type
Remote. You will see a dropdown with several options. Click
Remote-SSH: connect to host
ii. In the input box provided, insert the hostname to ssh to in the format
email@example.com and click the highlighted option below it.
iii. Insert your password in the next step and Vscode will finish the rest of the configuration.
To open your folders, Navigate to
Files > open > file
Alternatively, you can click on the File Explorer to Open the folder that you would like to access.
Happy Coding From the shark🦈