VarjuOrg

Linux / Windows – what’s the difference…

hg and mercurial on bitbucket – ssh on linux connection problems

FoodForThought:

Error:
dev$ hg pull
remote: Permission denied (publickey).
abort: no suitable response from remote hg!

What to do:
1. Check that you have generated and added publickey to BitBucket
2. Generate new key:
ssh-keygen -t rsa
3. copy both id_rsa.pub and id_rsa to ~/.ssh/
4. just in case delete old key from BB and add new one from that .pub file:
cat id_rsa.pub
5. CHMOD ~/.ssh/id_rsa.pub to 600
6. Check that identity is loaded:
ssh-add -l
7. Upon error like: The agent has no identities. do:
ssh-add ~/.ssh/id_rsa

After that everything should work 😉

For testing:
ssh -T hg@bitbucket.org < - Tests connection to BB (You can even add -Tv) ssh-add -l < - Should now show identity file. More troubleshooting niceness: BB hg troubleshooting – publickey not found
BB hg ssh general troubleshooting

, , ,

Leave a Reply

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