

Now we can head over to VS Code, open the app, press Cmd+ Shift+ P and type Add new SSH Host.

Select Use existing public key in the dropdown for SSH public key source so that you can use the public key you just generated. Click the cPanel SSH module, and click import a new key. Add SSH key to your VM In the previous step, you generated an SSH key pair.Therefore, treat your SSH public key the same security as your password: Using SSH Keys in Visual Studio Code on Windows Visual Studio Code is Microsoft’s open-source code editor for Windows, OS X and Linux.

This will save your SSH public key into your clipboard.If you do not have an SSH key yet, here is a good guide from Atlassian on how to do so.Next, we will have to add this SSH public key into cPanel, so that we can log into the server without needing a password.
