Accessing Picotte#

Connecting with VSCode#

To access Picotte, we’ll use VSCode’s “Remote - SSH” extension, which connects your editor to Picotte over the network using SSH[1]. Once connected, VSCode’s built-in terminal, file browser, and text editor all operate directly on Picotte — giving you a seamless way to work on the cluster.

Connect to Picotte#

  1. Open VSCode.

  2. Click the Remote indicator in the bottom-left corner of the window (it looks like a >< icon).

    Remote indicator icon

  3. Select “Connect to Host…” from the menu that appears.

  4. A text box will appear at the top of the window, prompting you to “Select configured SSH host or enter user@host”. In this box, type:

    YOUR_PICOTTE_USERNAME@picottelogin.urcf.drexel.edu
    

    replacing YOUR_PICOTTE_USERNAME with your actual Picotte username. This is usually the same as your Drexel username (your email address without the @drexel.edu[2]).

    SSH host text box

  5. If prompted to select the platform of the remote host, choose Linux.

  6. Enter your password when prompted. This is your Picotte password, not your main Drexel password! Your Picotte account is separate from your main Drexel account, and the passwords are independent from each other — they just use the same username for convenience.

    Password entry

  7. Wait for VSCode to finish setting up. The remote indicator in the bottom-left will change to show SSH: picottelogin.urcf.drexel.edu when you’re connected.

    Connected to Picotte

Your first command#

Now that you’re connected, let’s open a terminal on Picotte. Press Ctrl+Shift+` (that is: hold down Ctrl and Shift, then press the key with the ` character, usually in the upper-left of your keyboard) to open VSCode’s integrated terminal. You can also open it from the menu: Terminal → New Terminal.

This terminal is running on Picotte, not on your local computer. You should see a prompt like this, with username replaced by your actual Picotte username:

[username@picotte001 ~]$

picotte001 is another name for picottelogin — this is telling us that we’re connected to Picotte.

VSCode terminal

Let’s enter our first command! Type the command whoami, then press Enter to send the command to Picotte. The command’s output is your username.

whoami

Running whoami in VSCode terminal

How does SSH work?#

What’s actually happening when VSCode connects? Let’s imagine your username is bn23. When you tell VSCode to connect to:

bn23@picottelogin.urcf.drexel.edu

VSCode connects to the computer called picottelogin.urcf.drexel.edu, logging in as the username bn23.

picottelogin.urcf.drexel.edu is called the hostname or address of the remote machine. It’s just a name that lets you refer to another computer on a network. This is just like typing google.com into your web browser: google.com is just a name you use to refer to Google’s servers; picottelogin.urcf.drexel.edu is a name you use to refer to Picotte.

After you’re connected, when you type a command like whoami and press enter in the integrated terminal, rather than running whoami on your local computer, VSCode sends the command to the remote machine, which runs it and sends back the output. In this way, it feels like you’re directly connected to the remote machine because the commands you want to run and their output are being shuffled over the network for you.

SSH diagram showing command and output flow

Fig. 6 VSCode sends commands to a remote server and receives output back#