To configure and set up SSH keys for your GitHub account, follow these steps:
- Check whether you already have an ssh key pair.
- Open Git Bash and enter ls -al ~/.ssh to see whether existing SSH keys are present:
$ ls -al ~/.ssh
![](https://static.packt-cdn.com/products/9781788296243/graphics/assets/d219f8eb-26f6-467f-9330-a4be18aa42ec.png)
- The public key consists of the .pub extension. Create a new key pair (skip this step if you already have a key pair).
- Open Git Bash and paste in the following text, substituting your GitHub email address for the one shown:
$ ssh-keygen -t rsa -b 4096 -C your_email@example.com
![](https://static.packt-cdn.com/products/9781788296243/graphics/assets/1cfe963b-21e7-439e-accb-0c8065f21a38.png)
- When you're prompted to Enter a file in which to save the key, press the Enter button to accept the default file location mentioned:
![](https://static.packt-cdn.com/products/9781788296243/graphics/assets/949b9132-be2b-4fd2-bc61-ac9e3a5f3709.png)
- When prompted, type a secure passphrase (recommended), or press Enter to continue without a passphrase:
![](https://static.packt-cdn.com/products/9781788296243/graphics/assets/5ffa7516-077f-44cf-85b9-0bf5b6b821c7.png)
- The entire setup will look as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781788296243/graphics/assets/afa5c48e-e905-43ea-96c0-a6e650e427e9.png)
- Add the newly created SSH keys into ssh...