From abb1eedc5a5ecbf15d42323a93b6135f393f266f Mon Sep 17 00:00:00 2001 From: Adam Bobowski Date: Tue, 10 May 2022 17:54:37 +0200 Subject: [PATCH 1/3] Fixed ssh command required for connection to session --- docs/getting-started/typical-workflow-cli-user.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/typical-workflow-cli-user.md b/docs/getting-started/typical-workflow-cli-user.md index 2cc43db7..4e93ca14 100644 --- a/docs/getting-started/typical-workflow-cli-user.md +++ b/docs/getting-started/typical-workflow-cli-user.md @@ -222,10 +222,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. +Let's login to the Session via SSH using previously added key. ```yaml -grid session ssh resnet-debugging +grid session ssh resnet-debugging -- -i ~/.ssh/grid_ssh_creds ``` Now you're on the cloud machine! See how many GPUs you have From 0b0b6ac2fb1453be3986a339a85206621ef0b113 Mon Sep 17 00:00:00 2001 From: Femi <47154698+oojo12@users.noreply.github.com> Date: Tue, 10 May 2022 12:04:30 -0400 Subject: [PATCH 2/3] grammar --- docs/getting-started/typical-workflow-cli-user.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/typical-workflow-cli-user.md b/docs/getting-started/typical-workflow-cli-user.md index 4e93ca14..f2803cb0 100644 --- a/docs/getting-started/typical-workflow-cli-user.md +++ b/docs/getting-started/typical-workflow-cli-user.md @@ -222,7 +222,7 @@ 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 previously added key. +Let's login to the Session via SSH using the previously added key. ```yaml grid session ssh resnet-debugging -- -i ~/.ssh/grid_ssh_creds From 94c0bce224a8729bb885297a9af6da77caaeeb49 Mon Sep 17 00:00:00 2001 From: Adam Bobowski <100693297+adam-grid@users.noreply.github.com> Date: Wed, 18 May 2022 15:47:44 +0200 Subject: [PATCH 3/3] added section about adding ssh keys to ssh-agent --- docs/getting-started/typical-workflow-cli-user.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/typical-workflow-cli-user.md b/docs/getting-started/typical-workflow-cli-user.md index f2803cb0..d4948051 100644 --- a/docs/getting-started/typical-workflow-cli-user.md +++ b/docs/getting-started/typical-workflow-cli-user.md @@ -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 ``` @@ -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