Hg does not connect to bitpack using custom key

On my computer i have

.ssh / config:

Host bitbucket
    HostName bitbucket.org
    User hg
    IdentityFile ~/.ssh/id_rsa_pwd  

.hg / hgrc

[paths]
default = ssh://hg@bitbucket.org/lohoris/varlibs

(works with OSX 10.6)

I have exactly the same files on the debian server, but when I try to “run” the shell entry works on both:

PTY allocation request failed on channel 0
conq: logged in as lohoris.

                           You can use git or hg to connect to Bitbucket. Shell access is disabled.
                                                                                                   Connection to bitbucket.org closed.

Mercury connection works only on my computer, but refuses to cooperate from the server:

lohoris@office:~/www/varlibs$ hg pull
remote: Permission denied (publickey).
abort: no suitable response from remote hg!

This is the same message you get when the key is incorrect, but of course it is not (as I said, the attempt ssh bitbucket works ).

Most likely, the wrong key is used, because it does not even try to ask me the passphrase, but I can not understand why.

+5
source share
2 answers

ssh://bitbucket/lohoris/varlibs, ssh://hg@bitbucket.org/lohoris/varlibs.

+2

"Permission denied (publickey)", , , , . , :

ssh-agent
ssh-add <full path to your key file>

ssh -T hg@bitbucket.org ssh-debugger

+4

All Articles