How to connect to your VPS using Visual Studio Code
Connect Visual Studio Code to your Fusiora VPS with the Remote - SSH extension: install the extension, add your server's IP as an SSH target, then edit files and run commands directly on the VPS.
With Visual Studio Code's Remote - SSH extension you can edit files, upload projects and run terminal commands directly on your Fusiora VPS, as if you were working locally. Here is how to set up the connection for the first time.
Note: the VS Code remote server consumes RAM and CPU on the VPS. On the smallest plans (for example Starter, with 2 GB of RAM) it can affect performance.
1. Log in to the control panel
Sign in to the Fusiora control panel.
2. Open your server
Select the server you want to connect to and click Manage.
3. Find the IP address
You will find your VPS IP on the right side of the panel. Note it down — you will need it to connect.
4. Install the Remote - SSH extension
Open Visual Studio Code, go to Extensions (Marketplace), search for Remote - SSH and install the first extension, published by Microsoft.
5. Add an SSH target
Click the Remote Explorer (usually below the Extensions button) and click the + sign to add a new SSH target.
6. Enter the SSH command
In the Enter SSH Command box type ssh root@YOUR_IP — for example ssh root@123.45.67.89 — and press Enter twice.
7. Connect to the host
Under SSH Targets, right-click your VPS IP and choose Connect to Host in Current Window.
8. Operating system and password
Select your VPS operating system and press Enter. Then enter the root password you set when ordering your VPS.
9. Open a folder
Go to the Explorer tab and click Open Folder. Select the folder you want to open, click OK and enter your root password again.
10. Done
You can now use Visual Studio Code to upload and edit files and run commands in your VPS terminal.
How to disconnect from your VPS
Click File (top left) and then Close Remote Connection.
How to reconnect
Open the Remote Explorer and, under your VPS IP, right-click the folder you want to open and choose Open on SSH Host in Current Window. Enter your root password and you are back in.
Prefer a classic SSH client? See the guide How to connect to your VPS over SSH. Need more help? Open a ticket.
Was this article helpful?
Be the first to rate it