Skip to content

Commit

Permalink
added section about adding ssh keys to ssh-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-lightning authored May 18, 2022
1 parent 0b0b6ac commit 94c0bce
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/getting-started/typical-workflow-cli-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ You need to do this step **only once**
# make the ssh key (if you don't have one)
ssh-keygen -b 2048 -t rsa -f ~/.ssh/grid_ssh_creds -q -N ""

# add the key to the ssh-agent (to avoid having to explicitly state key on each connection)
# to start the agent, run the following
eval $(ssh-agent)
# then add the key
ssh-add ~/.ssh/grid_ssh_creds

# add the keys to grid
grid ssh-keys add key_1 ~/.ssh/grid_ssh_creds.pub
```
Expand Down Expand Up @@ -222,10 +228,10 @@ Once the session is ready, you have three options to interact with it:
- ssh from your local
- ssh + VSCode

Let's login to the Session via SSH using the previously added key.
Let's login to the Session via SSH.

```yaml
grid session ssh resnet-debugging -- -i ~/.ssh/grid_ssh_creds
grid session ssh resnet-debugging
```

Now you're on the cloud machine! See how many GPUs you have
Expand Down

0 comments on commit 94c0bce

Please sign in to comment.