-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from gridai/dev
Docs Update
- Loading branch information
Showing
4 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,22 +12,22 @@ Create an SSH key from the computer you'd like to connect from (skip this step i | |
|
||
```yaml | ||
# 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 "" | ||
ssh-keygen -b 2048 -t rsa -f ~/.ssh/grid_ssh_creds -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_ | ||
Here we use the ssh-agent to manage the keys and will add them to Grid. | ||
|
||
```yaml | ||
# 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 lit_key ~/.ssh/id_ed25519.pub | ||
or | ||
grid ssh-keys add key_1 ~/.ssh/id_rsa.pub | ||
grid ssh-keys add key_1 ~/.ssh/grid_ssh_creds.pub | ||
``` | ||
|
||
If you go to [Grid settings](https://platform.grid.ai/#/settings?tabId=ssh), you'll see SSH keys you've added to Grid | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,16 @@ Create an ssh key from the computer you'd like to connect from (skip this step i | |
|
||
```yaml | ||
# make the ssh key (if you don't have one) | ||
ssh-keygen -t ed25519 -C "[email protected]" | ||
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 lit_key ~/.ssh/id_ed25519.pub | ||
grid ssh-keys add key_1 ~/.ssh/grid_ssh_creds.pub | ||
``` | ||
|
||
## Step 1: Launch a session | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters