If I'm using Tower and I get a "Permission denied (publickey)" error, how do I fix it?


72
views
0
5 months ago by

Full error I saw whilst using Tower 2.0 was:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

add commentfollow this post modified 5 months ago by Ed Robinson   • written 5 months ago by Ed Robinson  

1 Answer


0
5 months ago by

1) Go to ~/.ssh

2) create a file called 'config'

3) in it place this text (including leading spaces):

Host *

  UseKeychain yes

  AddKeysToAgent yes

(Courtesy of http://mjtsai.com/blog/2016/12/19/macos-10-12-2-ssh-starts-asking-for-id_rsa-passphrase/)

add comment written 5 months ago by Ed Robinson  
Please log in to add an answer/comment or follow this question.

Similar posts:
Search »