I've followed Bitbucket's instructions to add my SSH keys and use git without having to authenticate each time. I followed the instructions here. Then I get to
ssh -T email@example.com I get the following message:
Bad owner or permissions on /home/centos/.ssh/config
A check of the SSH permissions shows:
cat ~/.ssh/config Host bitbucket.org IdentityFile ~/.ssh/id_rsa
~/.ssh/id_rsa exists and contains my private key. The public key is already added to my SSH keys in Bitbucket and the error message I get is not in their troubleshooting guide.
System is CentOS Linux release 7.0.1406 (Core), git version 22.214.171.124, the SSH key was added to Bitbucket 5 hours ago. Not sure if relevant, the user
centos on the CentOS machine was automatically created and I log in using an identity file (I don’t have a password for it). Also, the Bitbucket repository is working fine and I can work with it from another computer no problem. Both SSH keys are listed under my Bitbucket account.
UPDATE: Both answers I got mention permissions but that I had already checked. Both
~/.ssh/id_rsa are owned by my user with
600 respectively. I even tried chmod
777 to both files but got the same message.