- Navigate to your Vagrant box directory and run
vagrant ssh-config
- Copy the output
- Navigate to
%userprofile%\.ssh
- Paste the output in
config
(rename the host if you prefer) - Navigate to the directory containing the
IdentityFile
from your config - Open your shell and ensure the permissions are set to
600
- Paste the following in your VSCode settings JSON:
"remote.SSH.useLocalServer": true