Skip to content

SSH (backticks and absent command) #6642

@ghost

Description

What article on docs.github.com is affected?

Generating a new SSH key and adding it to the ssh-agent

generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md

What part(s) of the article would you like to see updated?

Reduce the amount of provided OS specific information in the file.

Mac and Linux

$ eval "$(ssh-agent -s)"
> Agent pid 59566

Windows (uses backticks)

The command could be the same as on the above OSes.

# start the ssh-agent in the background
$ eval `ssh-agent -s`
> Agent pid 59566

Adding your SSH key to the ssh-agent

For Linux and Windows another line could be added accessing a new kill_ssh_agent.md file.

4. {% data reusables.command_line.kill_ssh_agent %}

kill_ssh_agent.md (proposed)

Kill the current agent (given by the SSH_AGENT_PID environment variable).
```shell
$ eval "$(ssh-agent -k)"
> Agent pid 59566 killed
```

Here's the sole reference to killing the agent PID.

$ grep -nr ssh-agent content | grep kill
content/github/authenticating-to-github/connecting-to-github-with-ssh/working-with-ssh-key-passphrases.md:84:The `ssh-agent` process will continue to run until you log out, shut down your computer, or kill the process.
$ 

Perhaps the OS specific content regarding keychain could be hosted by the vendor and linked to.


"Working with SSH key passphrases"

working-with-ssh-key-passphrases.md

[Mac version of the page]
Saving your passphrase in the keychain

This content is perhaps dated.

[Windows version of the page]
Auto-launching ssh-agent on Git for Windows

Perhaps this content could be shifted to a Wiki page.

Metadata

Metadata

Assignees

Labels

contentThis issue or pull request belongs to the Docs Content teamhelp wantedAnyone is welcome to open a pull request to fix this issuesshContent related to SSH

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions