1

I tried following the steps in https://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts--net-22574 but it fails in the very first step. I am using Windows 10

I ran the ssh-keygen command in gitbash but got the following error: enter image description here

My user name has a space in between, so how do I deal with this to setup my github accounts? Thanks.

  • Try enclosing the entire directory in double quotes, and remove the one that is currently before `/.ssh` – Adil B Jan 31 '19 at 00:01

1 Answers1

0

With the latest version of Git, I recommend adding -m PEM, and, in your case, the target file path:

 cd /c/Users/Ab*
 mkdir .ssh
 chmod 700 .ssh
 cd .ssh
 ssh-keygen -t rsa -P "" -m PEM -f ./id_rsa
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250