From 8cb9f718a86ff84d2bd61d4e52546b48ef3e7a22 Mon Sep 17 00:00:00 2001 From: Vortun <133690671+Vortun@users.noreply.github.com> Date: Fri, 29 Dec 2023 14:31:56 +0100 Subject: [PATCH 1/2] Incorrect windows syntax & instructions fixed Some of the syntax was incorrect in the instructions regarding the path to your ssh key on windows (/ used instead of \, no : after drive label) Also corrected an error where the guide suggested to use CMD instead of PowerShell for commands that only work in PowerShell. --- ...nerating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md index dd058b39537b..8870bd751b6f 100644 --- a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md +++ b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md @@ -83,7 +83,7 @@ If you are a site administrator for {% data variables.location.product_location {% windows %} ```powershell - > Enter a file in which to save the key (/c/Users/YOU/.ssh/id_ALGORITHM):[Press enter] + > Enter a file in which to save the key (/c:\Users\YOU\.ssh\id_ALGORITHM):[Press enter] ``` {% endwindows %} @@ -166,7 +166,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav {% data reusables.desktop.windows_git_bash %} -1. In a new _admin elevated_ terminal window (PowerShell or CMD), ensure the ssh-agent is running. You can use the "Auto-launching the ssh-agent" instructions in "[AUTOTITLE](/articles/working-with-ssh-key-passphrases)", or start it manually: +1. In a new _admin elevated_ PowerShell window, ensure the ssh-agent is running. You can use the "Auto-launching the ssh-agent" instructions in "[AUTOTITLE](/articles/working-with-ssh-key-passphrases)", or start it manually: ```powershell # start the ssh-agent in the background @@ -258,7 +258,7 @@ If you are using macOS or Linux, you may need to update your SSH client or insta {% windows %} ```shell - > Enter a file in which to save the key (/c/Users/YOU/.ssh/id_{% ifversion ghae %}ecdsa{% else %}ed25519{% endif %}_sk):[Press enter] + > Enter a file in which to save the key (/c:\Users\YOU\.ssh\id_{% ifversion ghae %}ecdsa{% else %}ed25519{% endif %}_sk):[Press enter] ``` {% endwindows %} From cbd45bfd97d07e537ffb6b2fb211b27c2dcd3c72 Mon Sep 17 00:00:00 2001 From: Vortun <133690671+Vortun@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:04:03 +0100 Subject: [PATCH 2/2] Update generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md Fixed a couple leftover frontslashes from previous commit. --- ...nerating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md index 8870bd751b6f..d755445d6515 100644 --- a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md +++ b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md @@ -83,7 +83,7 @@ If you are a site administrator for {% data variables.location.product_location {% windows %} ```powershell - > Enter a file in which to save the key (/c:\Users\YOU\.ssh\id_ALGORITHM):[Press enter] + > Enter a file in which to save the key (c:\Users\YOU\.ssh\id_ALGORITHM):[Press enter] ``` {% endwindows %} @@ -178,7 +178,7 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav {% data reusables.ssh.add-ssh-key-to-ssh-agent %} ```powershell - ssh-add /c/Users/YOU/.ssh/id_ed25519 + ssh-add c:\Users\YOU\.ssh\id_ed25519 ``` {% data reusables.ssh.add-public-key-to-github %} @@ -258,7 +258,7 @@ If you are using macOS or Linux, you may need to update your SSH client or insta {% windows %} ```shell - > Enter a file in which to save the key (/c:\Users\YOU\.ssh\id_{% ifversion ghae %}ecdsa{% else %}ed25519{% endif %}_sk):[Press enter] + > Enter a file in which to save the key (c:\Users\YOU\.ssh\id_{% ifversion ghae %}ecdsa{% else %}ed25519{% endif %}_sk):[Press enter] ``` {% endwindows %}