Differences
This shows you the differences between two versions of the page.
student:stu:vscode [2022/08/25 09:29] – created lam2mo | student:stu:vscode [2022/09/08 09:31] (current) – Add quick reference lam2mo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Visual Studio Code on stu ====== | ====== Visual Studio Code on stu ====== | ||
- | Links to video tutorials by Dr. Lam: | + | ===== Links to video tutorials by Dr. Lam ===== |
* Video 1 (password-less access and remote SSH extension setup): https:// | * Video 1 (password-less access and remote SSH extension setup): https:// | ||
* Video 2 (C/C++ debugging setup and basic Git, mainly for CS 261): https:// | * Video 2 (C/C++ debugging setup and basic Git, mainly for CS 261): https:// | ||
+ | |||
+ | ===== Quick reference ====== | ||
+ | |||
+ | These instructions are for Windows machines, and cover the same material as the Video 1 linked above. On Macs, use Terminal instead of PowerShell, TextEdit instead of Notepad, and Finder instead of File Explorer. On Linux, use whatever terminal, text editor, and file explorer come with your desktop distribution. | ||
+ | |||
+ | 1. Verify your eID/ | ||
+ | ssh EID@stu.cs.jmu.edu | ||
+ | |||
+ | Your password may not appear as you press keys and that's fine – just type your password and press Enter! Once it succeeds, use the '' | ||
+ | |||
+ | 2. Generate a key pair in PowerShell: | ||
+ | ssh-keygen -t ed25519 | ||
+ | |||
+ | 3. Set up an SSH configuration. Using a file explorer, open the "'' | ||
+ | |||
+ | Host stu | ||
+ | Hostname stu.cs.jmu.edu | ||
+ | User EID | ||
+ | |||
+ | On Windows, you may need to show hidden files and/or file extensions using the View menu in File Explorer. You may need to manually remove the "'' | ||
+ | |||
+ | **WARNING: | ||
+ | |||
+ | 4. Verify quicker access in PowerShell: | ||
+ | ssh stu | ||
+ | |||
+ | It will still prompt you for your password at this point. Just log in and '' | ||
+ | |||
+ | 5. (if needed) Install VS Code from [[https:// | ||
+ | |||
+ | 6. Install extension(s) by opening the Extensions tab (icon w/ boxes at the bottom of the tab strip on the left-hand side). Install the “Remote SSH” extension by Microsoft. If you are in CS 261 or CS 432, you should also install the “Makefile Tools” extension by Microsoft. | ||
+ | |||
+ | 7. Connect to '' | ||
+ | |||
+ | 8. Copy your public key to stu using VS Code. You will need to copy the entire line of text from the '' | ||
+ | |||
+ | **WARNING: | ||
+ | |||
+ | 9. Verify password-less access in PowerShell: | ||
+ | ssh stu | ||
+ | |||
+ | 10. Verify password-less access in VS Code |