VS Code offers an extension called “Remote - SSH” that allows users to code on remote servers with their local VS Code configuration (all extensions are preserved regardless of the server). This provides an easy way for students that use VS Code already to develop on the SoCS Linux servers regardless of their hardware platform without extra configuration steps.
The workflow for using Remote-SSH with VS Code to develop on the SoCS Linux servers varies on campus and off campus. If you are off campus, you must first connect to VPN by:
If you are on campus and connected to University WIFI, you do not need to connect to the VPN to develop on SoCS Linux servers using VS Code.
Next, you must configure Remote-SSH with the SoCS Linux server by:
NOTE: After entering the SSH command, you may get a prompt asking you for the platform of your remote server if it is not automatically recognized. Choose “Linux” if you get this prompt and then enter your password regularly.
Please note that every time you wish to use Remote-SSH to develop on the SoCS Linux servers from off campus, you will need to connect to the VPN first. Otherwise your credentials in the authentication step will be rejected by the firewall. If you run into any other issues, please reach out to the SoCS IT Team at “help@socs.uoguelph.ca”.
A common error that students may run into when developing on the SoCS Linux servers using VS Code is not being able to authenticate on git when cloning or pushing (with a “missing or invalid credentials” error). This error occurs when using git through a terminal opened within VS Code due to a conflict between the git package on the server and the authentication handler of VS Code's Git extension. To resolve this: