SSH from VSCode Link to heading
You can SSH into a remote computer directly from VSCode to be able to edit and save remotely.
- Find the path and name of your SSH private key on the computer that runs VSCode, for example
~/.ssh/Windows_Private_Key - OpenSSH.ppk
. Note that it has to be an OpenSSH key – if needed convert the key with PuTTYgen. - Paste the key (the contents of the .ppk file) inte the file
.ssh/authorized_keys
on the remote computer. Or copy the file and rename it. - With Remote-SSH extension installed in VSCode, go to the Remote-SSH config file and give it the following content:
Host * IdentityFile |~/.ssh/name_of_.ppk_file| Host |hostname| HostName |ipaddress| User |username|