Azra
Azra

Reputation: 41

adding ssh key to Git account

I generate a new ssh key and I try to add in my Git account I follow the steps in this link

In the last phase when generating a new ssh key, I try to add the new ssh to the ssh-agent using this code

$ ssh-add ~/.ssh/id_rsa

I have an error like

$ ssh-add ~/ .ssh/id_rsa Error loading key "/c/Users/hp/": Is a directory .ssh/id_rsa: No such file or directory

Thanks in advance for your help

Upvotes: 3

Views: 2631

Answers (1)

Jakuje
Jakuje

Reputation: 25956

You have a space in your command in the quote, which should not be there:

ssh-add ~/ .ssh/id_rsa

The path should be without a space:

ssh-add ~/.ssh/id_rsa

Upvotes: 3

Related Questions