• Uncategorized

About linux : ssh-add-git-public-key-not-saved

Question Detail

I have to set each time that I reboot the system (macos):

ssh-add -K ~/.ssh/id_rsa_bb
ssh -T [email protected]

It doesn’t get saved, why? If I don’t do that I get:

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Question Answer

Maybe you can make a file by name ‘config’ in file .ssh, and write this command to synchrony your ssh:

sudo touch config

and the contents of the folder are:

# bitbucket.org
Host [email protected]
  PreferredAuthentications publickey
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa_bb

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.