How to Connect Visual Studio Code with VPS Servers to Run Commands and Modify Files

In this tutorial, we will show you how you connect VSCode with VPS servers and be able to quickly connect to your server, modify files and run commands. VSCode is a very developer friendly tool and if you’re planning on modifying a lot of files or running commands on the server, we recommend to follow this tutorial and connect to your server via VSCode.

  • Install VSCode if you haven’t yet
  • Install Remote Development plugin
  • Go into Remote Explorer and configure your servers
  • Once configured, go into Remote Explorer again, you should see all of your servers
  • Right click and connect.
  • If you’ve used password configuration, you will be asked to enter your SSH password to connect to the server.
  • You can also configure SSH keys so that it’ll automatically connect without requiring passwords.
  • In the next video, we’ll show you how we use VSCode to modify php.ini file of phpMyAdmin app.


Related Tutorials: