I want to push an project to the github homepage. Therefor, I am trying to create ssh-key for the github to manage it but I am facing problem that git creates the ssh-key in the wrong directory /c/Users/user82/.ssh/id_rsa)
and not in the project directory /desktop/dogs
.
How can I tell Git to create ssh-key in the project directory also /desktop/dogs
and not in this directory c/Users/user82
?
user82@User MINGW64 ~/desktop/dogs (master)
$ ssh-keygen -t rsa -C "example@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/user82/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/user82/.ssh/id_rsa.
Your public key has been saved in /c/Users/user82/.ssh/id_rsa.pub.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…