Let's first describe the problem that I've faced:
I've two PC, one of them is the Windows machine and the other one is the Linux machine.
I want to generate two SSH public key on both of these machines. One is for my GitHub account and the other one is for my GitLab account.
I have used the following commands to generate the public SSH key which is perfectly work in my Linux machine but not in the Windows machine.
Commands:
Step 1: Generate SSH Key
ssh-keygen
Step 2: Write the directory and file name where I want to save the SSH key.
[ For my case, I've inserted the windows path in below ]
/c/Users/PC_USER_NAME/.ssh/id_rsa_hub
Step 3: Get the public key from the file
cat ~/.ssh/id_rsa_hub.pub
These steps perfectly work on my Linux machine but on Windows, I saw the authentication error. How can I configure the SSH public key's?