1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Adding a tip to mention that the given steps to start ssh-agent may not work for all (#26974)

Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
Balakumaran Marimuthu
2023-08-17 15:43:31 +05:30
committed by GitHub
parent ff6bdd8244
commit aa7f8e31b8
5 changed files with 20 additions and 10 deletions

View File

@@ -63,6 +63,8 @@ You can delete unauthorized (or possibly compromised) SSH keys to ensure that an
{% data reusables.desktop.windows_git_for_windows_turn_on_ssh_agent %}
{% indented_data_reference reusables.desktop.note-start-ssh-agent spaces=3 %}
1. Find and take a note of your public key fingerprint.
```shell

View File

@@ -77,6 +77,9 @@ $ ssh -T git@{% data variables.command_line.codeblock %}
1. {% data reusables.desktop.windows_git_bash_turn_on_ssh_agent %}
{% data reusables.desktop.windows_git_for_windows_turn_on_ssh_agent %}
{% indented_data_reference reusables.desktop.note-start-ssh-agent spaces=3 %}
1. Verify that you have a private key generated and loaded into SSH.
```shell

View File

@@ -0,0 +1,5 @@
{% tip %}
**Note:** The eval commands above start ssh-agent manually in your environment. These commands may fail if ssh-agent already runs as a background system service. If that happens, we recommend you check the relevant documentation for your environment.
{% endtip %}

View File

@@ -1,7 +1,7 @@
**If you are using Git Bash**, turn on ssh-agent:
```shell
# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
```
```shell
# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
```

View File

@@ -1,7 +1,7 @@
**If you are using another terminal prompt**, such as [Git for Windows](https://git-for-windows.github.io/), turn on ssh-agent:
```shell
# start the ssh-agent in the background
$ eval $(ssh-agent -s)
> Agent pid 59566
```
```shell
# start the ssh-agent in the background
$ eval $(ssh-agent -s)
> Agent pid 59566
```