ssh cf405-09
Stop here and ensure you can connect to the desired host from your terminal before continuing.
If you can’t connect, the above command should give you a clue as to why. Here’s two common errors:
Did you use the correct username?
Your username is the same as your Universal username. This does not include the “@wwu.edu” portion. Ex: [email protected] is just myusername
Did you use the correct password?
Your CS account is separate from your Universal account, and has a separate password. See above for link to reset it if needed.
Do you have a CS account?
New student accounts are created as data becomes available, starting the morning of the first day of classes and each morning thereafter into the first full week of classes. If you registered for a CS class after the first day of classes and still don’t have an account by Tuesday of the next week please reach out to support.
Check your configuration
If your config file is not setup correctly, the above command will not know about matching the cf???-?? pattern, and that it needs to jump through a special host to get there.
Check your spelling / numbers.
cf405-09 is not the same as cf405-009
Once you have confirmed you can connect from the terminal, return to VS Code and begin the connection process.
Click the green “Remote-SSH button again to open the Command Palette and suggest the remote connection options.
But this time click “Remote-SSH: Connect to Host…”
The Command Palette’s prompt will change, allowing you to enter a host name.
In this prompt you can enter a CSCI lab machine host name and press Enter. The following are available, but may not be booted into Linux. You may have also been assigned a particular system by your professor. If that is the case, please use your assigned system. Otherwise you can use one of the following:
CSCI Lab Hosts
Please note that all the hostnames use two-digits, so 00, 01, 02, etc.
You’ll see something like this the first time, asking you to select the platform type.
Click “Linux” then you should get pop-up asking you to accept host keys and enter your password.
Note: Sometimes the Command Palette will be prompt for your password instead of the lower terminal. The cause of this is undetermined.
Note: If you’re not using SSH keys with an SSH-Agent, it will prompt your for your password twice – once for the jump host, and once for the lab host.
You should now see the green button in the bottom right change to show that it’s connect to the remote lab machine.
Now click the two files icon in the Activity Bar to open the directory browser in the Side Bar.
In the Side Bar click the blue “Open Folder” button to pop-up the Command Palette.
The Command Palette will prompt for the path to browse. Enter the path to your directory (VSCode usually auto-suggests the correct path), then click OK.
Note: If you’re not using SSH keys with an SSH-Agent, it will prompt your for your password twice – once for the jump host, and once for the lab host. This is the second time this has been noted. You should probably be using SSH keys and the SSH-Agent. (Hint, hint. Wink, wink. Nudge, nudge. Know what I mean?)
Your directory should now appear in the Side Bar, allowing you to remotely edit code!