Connect Securely to Tux from VSCode (All Platforms)

By default, VSCode uses a TCP port to talk to the VSCode server on remote hosts. This is insecure on multi-user systems like Tux, as any user can connect to your TCP port and there is no security applied on this port. Thus, you MUST configure VSCode to use Sockets to talk to Tux, as this uses socket-based communication which is more secure on multi-user systems.


Open Settings from the Gear icon at the bottom left of the VSCode Window:

VSCode-Settings


Find Extensions and expand it, then find Remote - SSH and select it.

VSCode-Extensions-RemoteSSH


Scroll down to "Remote.SSH: Remote Server Listen On Socket" and enable this. 

VSCode-RemoteSSH-Socket


ECONNRESET Troubleshooting

Make sure you have a backup of any code files or folders in OneDrive or another location.

Then...
ssh into Tux in a cmd.exe or Powershell or Mac Terminal window. Replace userid with your Drexel userid.

ssh userid@drexel.edu

Then type in the following commands. Press the Enter/Return key at the end of each line.

cd ~
ls -a 
rm -rf .vscode-server

BE *VERY* careful to enter the last command above exactly as shown.

Then do what is in either the Windows or Mac section below.

====================
On a Windows computer, do the following

Open Run dialog window (Win key + R)
Type in this into the box:
%appdata%
Press Enter/Return key
Delete the folder called "Code"

Then go to Start menu (Win key) and Settings > Applications and uninstall vscode (Visual Studio code OR Microsoft Visual Studio code).

Your host names you connect to, extensions, and other local settings should be saved still, at least in our testing, but you may have to set up again.  Your other remote settings will likely be deleted.

Download and reinstall vscode again.

====================

On Mac, open Finder, click Go > Go to Folder, and copy paste in the following, then press Enter/Return.

~/Library/Application Support/

Find and delete the folder called "Code"

Go to a Finder window.

Right click and move to trash (uninstall) vscode (Visual Studio code OR Microsoft Visual Studio code).

Download and reinstall vscode again.