

- #VISUAL STUDIO CODE REMOTE SSH INSTALL#
- #VISUAL STUDIO CODE REMOTE SSH FULL#
- #VISUAL STUDIO CODE REMOTE SSH PASSWORD#
You may be prompted to acknowledge a Workspace Trust prompt if so, click "yes" to mark the directory as trusted and enable all editor features. Click the "Open Folder" button at the top left of the sidebar to find a directory on your server. When the installation is complete, you will find yourself in a standard Visual Studio code window that performs operations on the selected host. It may take a few moments to configure the first run while Visual Studio configures the remote host and activates its server component. Click the folder icon next to its name to open a connection in a new Visual Studio Code window. Your new host will be added to the Remote Explorer sidebar. Selecting the default from your home directory is usually the best option if you are unsure. You can choose from your default user file, the system settings file, or a custom location. You will be prompted to choose an SSH configuration file to write to. This allows you to use your local keys when executing the following SSH commands on the server.
#VISUAL STUDIO CODE REMOTE SSH FULL#
This should be a full SSH login command with the -A flag to activate agent transfer. A pop-up window will appear allowing you to enter your server details.

Click the plus button to create a new connection.

Hover over the "SSH Targets" heading in the side panel. Select "SSH Targets" from the drop-down list at the top if it is not already selected. Search for "remote explorer" and run the command "View: Show Remote Explorer" to display the remote side panel. Press Ctrl + Shift + P to display the Command Palette.
#VISUAL STUDIO CODE REMOTE SSH PASSWORD#
VS Code does not fully support password authentication although it will work, you will have to re-enter your password each time a command is executed. MacOS hosts must have the operating system's remote login feature enabled.īefore continuing, make sure you have copied your local SSH public key to the authorized_keys file. Windows servers are also supported, provided the official Microsoft OpenSSH server is used. The extension works with hosts running Ubuntu, Debian, CentOS, RHEL, and Raspbian. You should now connect to your SSH server. It is published and supported by Microsoft.
#VISUAL STUDIO CODE REMOTE SSH INSTALL#
Search for "remote - ssh" and install the corresponding extension. The extensions sidebar will appear on the left. Press Ctrl + Shift + P to open the command palette and type "install". Start by adding the Remote - SSH extension to your editor.
