> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to connect to your VPS using Visual Studio Code

| There is video version of this article available. Click [here ](https://www.youtube.com/watch?v=Zc_M3L3f0Y0)to view the video.

### How to connect to your VPS using Visual Studio Code

1. Select the server to which you want to connect to and click on Manage.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/02-select-server_17xbksn.png)

2. Find your VPS IP address on the right side of the panel, and take note of it, as you will need it to connect to your VPS.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/03-find-ip-address_s68dic.png)

3. Open Visual Studio Code(VSC) and in the Extensions: Marketplace, search “Remote - SSH” and install the first extension by Microsoft.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/04-extension-marketplace_lki2pi.png)

4. Click on the Remote Explorer Button, which usually is under the Extensions: Marketplace button, and click on the Plus icon to add a new SSH Target.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/05-add-ssh-targets_1srzr13.png)

5. In the “Enter SSH Command” box, type “ssh root@<Your VPS IP Address>”, For Example: “ssh root@123.456.78.910”, and click Enter twice.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/06-enter-ssh-command_h6wt1y.png)

6. Under SSH Targets, right-click on your VPS IP Address, and click on “Connect to Host in Current Window”.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/07-connect-to-vps_gawc6t.png)

7. Click on the VPS’ Operating System and click Enter. Then enter the Root Password that you’ve set when ordering your VPS.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/08-enter-vps-password_1qhn4ji.png)

8. Go to the Explorer tab, and click on Open Folder.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/09-open-folder_1ma4zyb.png)

9. Select the Folder that you would like to open and click OK, then Enter your Root Password.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/10-select-folder_1sybfl4.png)

10. After that, you can now use Visual Studio Code to upload, & edit your files & run terminal commands on your VPS.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/11-connected_1xbds37.png)

### How to disconnect from your VPS using Visual Studio Code

1. To disconnect from your VPS, click on File on the top-left area and click on “Close Remote Connection”.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/12-disconnect-from-vps_qp8hmr.png)

### How to reconnect to your VPS using Visual Studio Code

1. Open the Remote Explorer and under your VPS’ IP Address, right-click the folder that you would like to open then click on “Open on SSH Host in Current Window”.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/13-reconnect-to-vps_r3thed.png)

2. Then Enter your Root Password, and it should reconnect you to your VPS.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/08-enter-vps-password_1m92dkx.png)

---

If you require any further assistance, please create a ticket [here](https://billing.sparkedhost.com/submitticket.php).

---

Created By: Alecz R.