Difference between revisions of "HowTo SSH Keys"

From sigrok
Jump to navigation Jump to search
(Created page with "= Generate and deploy SSH Keys to Github = == Generate the keys == 1. Generate key <small> <source lang="python"> $ ssh-keygen -t ed25519 -C "your_email@example.com" </source> </small> 2. Name the file <code>id_github_sigrokorg</code> and store it somewhere in your home directory (e.g. <code>/home/frank/.ssh</code>) 3. Don't enter a password 4. You now have two files: <code>id_github_sigrokorg</code> (the private key) and <code>id_github_sigrokorg.pub</code> (the publ...")
 
Line 3: Line 3:
== Generate the keys ==
== Generate the keys ==


1. Generate key
# Generate key
<small>
<small>
<source lang="python">
<source lang="python">
Line 9: Line 9:
</source>
</source>
</small>
</small>
2. 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>)
3. Don't enter a password
# Don't enter a password
4. You now have two files: <code>id_github_sigrokorg</code> (the private key) and <code>id_github_sigrokorg.pub</code> (the public key)
# You now have two files: <code>id_github_sigrokorg</code> (the private key) and <code>id_github_sigrokorg.pub</code> (the public key)


== Add key to the destination repository (e.g. <code>libsigrokflow</code>) ==
== Add key to the destination repository (e.g. <code>libsigrokflow</code>) ==


1. 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)
2. Enter the settings menu
# Click on "Settings" (repository settings)
[[File:destination_settings.png]]
[[File:destination_settings.png]]
# Click on "Deploy keys"
[[File:destination_deploy_keys.png]]

Revision as of 17:25, 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"

  1. Name the file id_github_sigrokorg and store it somewhere in your home directory (e.g. /home/frank/.ssh)
  2. Don't enter a password
  3. 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

  1. Click on "Deploy keys"

Destination deploy keys.png