The Remote - SSH extension lets you use any remote machine with an SSH server as your development environment. This can greatly simplify development and troubleshooting in a wide variety of situations. You can:
- Develop on the same operating system you deploy to or use larger, faster or more specialized hardware than your local machine.
- Quickly swap between different, remote development environments and safely make updates without worrying about impacting your local machine.
- Access an existing development environment from multiple machines or locations.
- Debug an application running somewhere else such as a customer site or in the cloud.
- Install VS Code - Insiders
- Install the Remote Development extension pack.
- First, configure key based authentication on the host you plan to use.Run Remote-SSH: Connect to Host... from the Command Palette (F1) and select Configure SSH hosts...
- Select /home/user/.ssh/config
- In the Config file give your HostName, User,Port, and IdentifyFile if applicable and save
- Run Remote-SSH: Connect to Host... from the Command Palette (F1) and select your Host
- If you have a passPhrase terminal will ask for your passphrase.
- After you are connected, you'll be in an empty window. You can then open a folder or workspace on the remote machine using File > Open... or File > Open Workspace...
You are all set to go