ssh github generate key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
ssh github generate key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
add ssh key to github
$ ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
how to generate ssh key for git
Step1: in git bash type this
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
# press enter to skip the prompt or enter the details if you like for
# 1. > Enter a file in which to save the key (/c/Users/you/.ssh/id_algorithm):[Press enter]
# 2. > Enter passphrase (empty for no passphrase): [Type a passphrase]
# 3. > Enter same passphrase again: [Type passphrase again]
Step2: start the ssh-agent in the background
$ eval $(ssh-agent -s)
Step3: Add your SSH private key to the ssh-agent.
$ ssh-add ~/.ssh/id_ed25519
Step4: Generate public key
$ cat ~/.ssh/id_ed25519.pub
Step5: Copy and Paste the generate key to your github SSH key
Done!
add ssh key to github
> Generating public/private rsa key pair.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us