Tengo un problema al presionar a un repository de bitbucket. Recibo este post:
Pushing to ssh://git@bitbucket.org/banana/pera.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to ssh://git@bitbucket.org/banana/pera.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to ssh://git@bitbucket.org/banana/pera.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to ssh://git@bitbucket.org/banana/pera.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Leyendo algunas respuestas aquí y en el foro de Atlassian vi que para probar si mi key está bien debería usar: ssh -T hg@bitbucket.org
. Lo hice y recibo un Permission denied (publickey).
Mi problema ahora es saber qué file utiliza para poder darle los permissions adecuados. ¿Cómo puedo hacer eso? Todos los files bajo ~/.ssh/
tienen el permiso de 700. Estoy usando una Macbook.
Gracias por cualquier ayuda
Lo más fácil es usar el ssh-agent
.
Use ssh-add
o ssh-add $privatekey
para agregar su key al agente.
Use ssh-add -L
para imprimir la key pública y verifique que sea la misma que en bitbucket.
Ahora testing ssh
o git clone
y debería funcionar.