Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to obtain SSH_KEY in Github
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to obtain SSH_KEY in Github

To generate an SSH key pair on your local machine, if you don't have one already, you can use the following command:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

This will generate two files, id_rsa and id_rsa.pub, in the ~/.ssh directory.

Next, in the "Public Keys" section of your xxx application settings, add the content of the id_rsa.pub file.

To obtain the private key, you need to output and format the content of the id_rsa file. Run this command in your terminal:

cat ~/.ssh/id_rsa | base64

This will output a long string of base64-encoded private key content.

Add this output as a secret named SSH_KEY to your GitHub repository.

So basically, here's what you need to do:

  1. Generate a key pair.
  2. Provide the public key to xxx.
  3. Output and base64 encode the private key content.
  4. Add it as a secret in GitHub.

Comments

  • FlorinMarianFlorinMarian Member, Host Rep

    Give me the private key and url of your private repository to see if the tutorial works or whatever it is.

  • nullptrnullptr Member
    edited January 4

    :D

  • yusrayusra Member

    @FlorinMarian said: Give me the private key and url of your private repository to see if the tutorial works or whatever it is.

    You should've requested the key to his house too.

  • FlorinMarianFlorinMarian Member, Host Rep

    @yusra said:

    @FlorinMarian said: Give me the private key and url of your private repository to see if the tutorial works or whatever it is.

    You should've requested the key to his house too.

    Better BTC wallet keys :hushed:

  • popssspopsss Member

    Why not ed25519 keys?

Sign In or Register to comment.