techsupport:guides:vscode
Using VSCode with Portkey
- Open up VSCode and click on the “Extensions” icon in the left sidebar. Search for “Remote - SSH” and install the extension.
- Once the extension is installed, click on the “Remote Explorer” icon in the left sidebar. Then, click on the “SSH Targets” dropdown and select “Add SSH Host”.
- In the “SSH Targets” dropdown, select “Configure SSH Hosts”. This will open up your SSH config file in VSCode
- In the SSH config file, add the following code
Host portkey Hostname portkey.socs.uoguelph.ca User your_username Host linux Hostname linux.socs.uoguelph.ca User your_username ProxyCommand ssh -q -W %h:%p portkey
- Replace your_username with your actual username for both the jump host and target box.
- Save the SSH config file and close it.
- In the “SSH Targets” dropdown, you should now see two new entries: “portkey” and “linux”. Click on “linux”.
- You'll be prompted to enter your password for the target box. Enter it and click “OK”.
VSCode will now open a new window with a terminal connected to the target box through the jump host. You can now work on files and run commands on the target box as if you were working on it directly.
techsupport/guides/vscode.txt · Last modified: 2023/09/01 14:22 by kjohns23