How to connect to Linux Server via Visual Studio Code (VS code)

How to connect to Linux Servers via Visual Studio Code (VS code)
Introduction
 
The Visual Studio Code Remote - SSH extension allows you to open a remote folder on any remote machine, virtual machine, or container with a running SSH server and take full advantage of VS Code's feature set. Once connected to a server, you can interact with files and folders anywhere on the remote filesystem.
 
1. Install an OpenSSH client if one is not already present in the local Server.
  • In Server Manager, on the navigation pane to the left, select Local Server.
  • In the Properties window, locate Remote SSH Access.
  • Select Disabled to enable the OpenSSH service.
2. Install Visual Studio Code
3. Configuring and Connecting the server
  • Select Remote-SSH: Connect to Host... from the Command Palette (F1, Ctrl+Shift+P)
  • Add hosting server
  • Connecting to the Server
  • Choose Config File (local) to Save SSH Information
  • Confirm to Connect
  • Input Server Password
  • Operate the Server
 
Note: Default Shortcut Command in VS Code

Add Feedback