3

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

1
  • 2
    Can you provide more information about your environment. As it seems you're using NIX commands on a Windows machine. Commented Sep 5, 2016 at 10:32

1 Answer 1

3

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.