Linux / Windows – what’s the difference…

hg and mercurial on bitbucket – ssh on linux connection problems


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 and id_rsa to ~/.ssh/
4. just in case delete old key from BB and add new one from that .pub file:
5. CHMOD ~/.ssh/ 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 < - 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 *