Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Created July 3, 2025 18:19
Show Gist options
  • Save mattantonelli/ed81f8ad9ea4de40858326fddec317ac to your computer and use it in GitHub Desktop.
Save mattantonelli/ed81f8ad9ea4de40858326fddec317ac to your computer and use it in GitHub Desktop.
VSCode Remote - SSH for Vagrant VM

VSCode Remote - SSH for Vagrant VM

  1. Navigate to your Vagrant box directory and run vagrant ssh-config
  2. Copy the output
  3. Navigate to %userprofile%\.ssh
  4. Paste the output in config (rename the host if you prefer)
  5. Navigate to the directory containing the IdentityFile from your config
  6. Open your shell and ensure the permissions are set to 600
  7. Paste the following in your VSCode settings JSON:
"remote.SSH.useLocalServer": true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment