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 <br /><small><source lang="python"> $ ssh-keygen -t ed25519 -C "your_email@example.com"</source></small>
# Generate key <br /><small><source> $ 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

Revision as of 16:46, 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 public key to the destination repository (e.g. libsigrokflow)

  1. Go the the Github page of the repository in question (e.g. https://github.com/sigrokproject/libsigrokflow)
  2. Click on "Settings" (repository settings)
    Error creating thumbnail: Unable to save thumbnail to destination
  3. Click on "Deploy keys"
    Error creating thumbnail: Unable to save thumbnail to destination
  4. Click on "Add deploy key"
    Error creating thumbnail: Unable to save thumbnail to destination
  5. Enter a title, e.g. "Deploy key for sigrok-sync"
  6. Paste the content of the public key into the "key" text area
  7. Select "Allow write access"
    Error creating thumbnail: Unable to save thumbnail to destination

Add private key to the source repository (sigrok-sync)

  1. Go the the Github page of the sigrok-sync repository
  2. Click on "Settings" (repository settings)
    Error creating thumbnail: Unable to save thumbnail to destination
  3. Click on "Secrets" and then on "Actions"
    Error creating thumbnail: Unable to save thumbnail to destination
  4. Click on "New repository secret"
    Error creating thumbnail: Unable to save thumbnail to destination
  5. Enter a name (this name is used in the Github workflow): SSH_SYNCY_KEY
  6. Paste the content of the private key into the "secret" text area
    Error creating thumbnail: Unable to save thumbnail to destination