Skip to content

Directions for creating a new SSH key are inconsistent and fail if run as documented #1086

Closed
@DavidAnson

Description

@DavidAnson

What article on docs.github.com is affected?

Generating a new SSH key and adding it to the ssh-agent
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

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

On Linux, the user is told:

> Enter a file in which to save the key (/home/you/.ssh/id_ed25519): [Press enter]

And:

$ ssh-add ~/.ssh/id_rsa

These are inconsistent - the file in the second case should be id_ed25519.

I'd have submitted a PR, but there's inconsistent use of {% data reusables.ssh.add-ssh-key-to-ssh-agent-commandline %} here and I don't know where that's defined.

Additional information

Results of the second command if run as documented:

pi@pi:~ $ ssh-add ~/.ssh/id_rsa
/home/pi/.ssh/id_rsa: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions