Bitbucket has error after git push

Problem: Warning message

Warning: Permanently added ‘,’ (RSA) to the list of known hosts. Permission denied (publickey).

while executing git push command.

Permanently added (RSA) to the list of known hosts. Permission denied.

Solution: We necessary right configure SSH keys.

Step 1. Go to home user directory (usually, it available after successfully ssh connected) and check the availability file located to /home/username/.ssh/ . If file exist go to step 2, else creating an ssh pair for user authentication use command:


Step 2. Copy content the file and paste to Bitbucket Settings - SSH Keys - Add key

vi /home/username/.ssh/

Step 3. Add your SSH private key to the ssh-agent:

ssh-add -l

Step 4. Check configure file setup:

vi /home/username/.ssh/config

it must have next contain:


IdentityFile ~/.ssh/

Step 5. Connect via SSH directly:

ssh -Tvv

Leave Comment

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