TodorNedkovski
TodorNedkovski

Reputation: 39

No such file or directory ssh-add ~/id_rsa

I am trying to add my ssh key to my ssh agent.Can i do it if my ssh key is in my external hard drive.I want to clone my repositories in my hard drive

Upvotes: 1

Views: 12486

Answers (2)

msuliq
msuliq

Reputation: 260

I had a similar issue, and it turned out my key was not RSA. I ran ssh-add -l to see the list of available keys and my key looked something like: 256 SHA256:/cc/randomletters [email protected] (ED25519) So instead of id_rsa I used id_ed25519 and the command for me was ssh-add ~/.ssh/id_ed25519

Upvotes: 0

Ismael
Ismael

Reputation: 92

you should use ssh-add ~/.ssh/id_rsa instead .i think your path is incorrect the key pair are under ~/.ssh folder and not ~/

Upvotes: 1

Related Questions