bbenoist / vscode-vagrant

Vagrant support for Visual Studio Code
https://marketplace.visualstudio.com/items/bbenoist.Vagrant
MIT License
38 stars 16 forks source link

Add support for vagrant ssh #9

Open pzelnip opened 7 years ago

pzelnip commented 7 years ago

Would be cool if one could do (from the command palette) a vagrant ssh, and have it open up an interactive ssh session in the terminal window on the VM.

pzelnip commented 7 years ago

Wait, it looks like there's code for this, but it doesn't show in the palette, nor is mentioned in the readme?

thehig commented 5 years ago

@pzelnip Did you ever figure out a way to do this?

pzelnip commented 5 years ago

Nope.

depthoffocus commented 3 years ago

I have added a little bit of (Vagrant) code I use to manage the VSC remote list to #18.

This maintains a file you can include into .ssh/config with host configurations for all your currently running vagrant boxes, which the Remote-SSH extension will see when it changes.

This, in turn, should get you ssh boxname working in any terminal window.