

Selecting the default in your home directory is usually the best option if you’re unsure. You can choose from your default user file, the system settings file, or a custom location. You’ll be prompted to choose an SSH configuration file to write to. This lets you use your local keys when running subsequent SSH commands on the server. This should be a complete SSH connection command with the -A flag to enable agent forwarding. A popup will appear letting you input your server’s 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 dropdown at the top if it’s not already selected. Search for “remote explorer” and run the “View: Show Remote Explorer” command to bring up the remote side panel. Press Ctrl+Shift+P to display the Command Palette. VS Code doesn’t fully support password-based authentication although it will work, you’ll need to re-enter your password each time a command is run. macOS hosts need to have the operating system’s Remote Login feature enabled.īefore continuing, make sure you’ve copied your local SSH public key over to your server’s authorized_keys file. Windows servers are supported too, provided Microsoft’s official OpenSSH server is used. The extension works with hosts running Ubuntu, Debian, CentOS, RHEL, and Raspbian. Now you need to connect to your SSH server.
