Difference between revisions of "HowTo SSH Keys"

From sigrok
Jump to navigation Jump to search
Line 3: Line 3:
== Generate the keys ==
== Generate the keys ==


# Generate key
# Generate key <br /><small><source lang="python"> $ ssh-keygen -t ed25519 -C "your_email@example.com"</source></small>
<small>
<source lang="python">
$ ssh-keygen -t ed25519 -C "your_email@example.com"
</source>
</small>
# Name the file <code>id_github_sigrokorg</code> and store it somewhere in your home directory (e.g. <code>/home/frank/.ssh</code>)
# Name the file <code>id_github_sigrokorg</code> and store it somewhere in your home directory (e.g. <code>/home/frank/.ssh</code>)
# Don't enter a password
# Don't enter a password
Line 16: Line 11:


# Go the the github page for of the repository in question (e.g. https://github.com/sigrokproject/libsigrokflow)
# Go the the github page for of the repository in question (e.g. https://github.com/sigrokproject/libsigrokflow)
# Click on "Settings" (repository settings)
# Click on "Settings" (repository settings)<br />[[File:destination_settings.png]]
[[File:destination_settings.png]]
# Click on "Deploy keys"<br />[[File:destination_deploy_keys.png]]
# Click on "Deploy keys"
[[File:destination_deploy_keys.png]]

Revision as of 18:28, 2 April 2023

Generate and deploy SSH Keys to Github

Generate the keys

  1. Generate key
     $ ssh-keygen -t ed25519 -C "your_email@example.com"
    
  2. Name the file id_github_sigrokorg and store it somewhere in your home directory (e.g. /home/frank/.ssh)
  3. Don't enter a password
  4. You now have two files: id_github_sigrokorg (the private key) and id_github_sigrokorg.pub (the public key)

Add key to the destination repository (e.g. libsigrokflow)

  1. Go the the github page for of the repository in question (e.g. https://github.com/sigrokproject/libsigrokflow)
  2. Click on "Settings" (repository settings)
    Destination settings.png
  3. Click on "Deploy keys"
    Destination deploy keys.png