SSH into a Session

ssh to an interactive session to carry out prototyping, debugging workflows

Step 0: Create an SSH Key

Create an ssh key from the computer you'd like to connect from (skip this step if you already have a key)

# make the ssh key (if you don't have one)
ssh-keygen -t ed25519 -C "[email protected]"
or
ssh-keygen -b 2048 -t rsa -q -N ""

Step 1: Add the SSH key

Here we assume to have SSH keys named ed25519.pub, which are the default used by the command above.

We're going to add the key and name it lit_key

# add the keys to grid
grid ssh-keys add lit_key ~/.ssh/id_ed25519.pub
or
grid ssh-keys add key_1 ~/.ssh/id_rsa.pub

If you go to settings, you'll see the key

Step 2: Launch the session

Use the CLI or Web interface to create and launch session

grid session create --instance_type 2_m60_8gb --name happy-owl-123

Step 3: Login to the interactive session

grid session ssh happy-owl-123

You can clone any Github repositories into a Session using the HTTPS cloning method (SSH method of cloning will not work).