How-to: Use VSCode to Connect to Talapas
Visual Studio Code is a popular modern text editor that has SSH capabilities built-in. This allows you to edit files using the file tree and terminal built into VSCode from your workstation rather than connecting with your terminal to Talapas.
Let’s learn how to connect to Talapas using the Remote-SSH
component of VSCode!
Steps:
Open VSCode
Press
cmd+shift+p
for mac, orctrl+shift+p
for Windows, this is your “Command Palette”. TypeRemote-SSH
, and selectRemote-SSH: Connect to Host...
If you’ve connected before, your list will already have Talapas listed. For example, I have two hosts already configured. You should click
Add New SSH Host...
In the following box, write the SSH connection command, replacing
myuser
with your DuckID:
For the SSH configuration file, you can use the default location that’s stored in your home directory, or you can specify a custom file if you’d like. Once you’ve set this, you should receive a notification that the host was added.
Now that you have your host added, use the Command Palette to type
Remote-SSH
again, and click the sameRemote-SSH: Connect to Host...
, then select your newlogin.talapas.uoregon.edu
host.
A new VSCode window will open and the text box at the top will be asking for your password. Once you’ve entered that, it will ask you for your DUO login for 2-factor authentication. The trick here is to type the number
1
and hit enter, and it will use your first two-factor method configured on your DuckID account. Accept the DUO request and your VSCode window should connect.In your file tree, you can click the
Open Folder
button and simply press theEnter
key (or click the OK button), and your file tree should show all the files in your home directory. If it asks you if you want to trust the authors of the files, go ahead and click the accept button.