I want to generate ssh key for my android project in windows operating system. How to Generate a SSH key for GitHub?
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
This is how you can easily generate SSH key for your Android project or SSH for any project on Windows laptop.
SSH Key Generation is an important aspect of GitHub.Especially in windows operating systems, it was challenging. To set up the SSH key generation problem in windows we must follow the below things.
If you want to use a hardware security key to authenticate to GitHub, you must generate a new SSH key for your hardware security key. You must connect your hardware security key to your computer when you authenticate with the key pair. For more information, see the OpenSSH 8.2 release notes.
If you don’t want to reenter your passphrase every time you use your SSH key, you can add your key to the SSH agent, which manages your SSH keys and remembers your passphrase.
1. Open git Bash on your computer/Laptop
2. Paste the text below, substituting in your GitHub email address.
$ ssh-keygen -t ed25519 -C “your_email@example.com”
Note: If you are using a legacy system that doesn’t support the Ed25519
algorithm, use:
$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
3. enter this command
# start the ssh-agent in the background
$ eval “$(ssh-agent -s)”
> Agent pid 59566
4. Now enter this command
$ ssh-add ~/.ssh/id_ed25519.