We resolved this, it was a mismatch of host name in .ssh/config vs gate 
url.

--Mark

On Thu, 21 Aug 2008, Sachin Gaikwad wrote:

> Date: Thu, 21 Aug 2008 13:41:22 -0700
> From: Sachin Gaikwad <Sachin.Gaikwad at Sun.COM>
> To: gatekeeper at onnv.eng.sun.com
> Cc: scm-migration-dev at opensolaris.org
> Subject: [scm-migration-dev] teamware to mercurial: ssh key problems
> 
> Hi all,
>
> I have successfully did the conversion from teamware to mercurial.
>
> bash$ hg reparent ssh://onnv.sfbay.sun.com//export/onnv-clone
> After this when I used to type any hg commands it used to ask me "Password:"
>
> Then I generated a ssh-key pair(Empty Passphrase entered) and copied
> ~/.ssh/id_dsa.pub into ~/.ssh/authorized_keys. After that it never asked
> for "Password". Although it is showing this annoying warning "remote:
> Not trusting file /export/onnv-clone/.hg/hgrc from untrusted user onhg,
> group gk".
>
> Now I am ready to push my one bug fix. I am following instructions from
> here:
> http://www.opensolaris.org/os/community/on/flag-days/pages/2008080502/
>
> After I reparented my repository to $GATE:
> bash$ hg pbchk
> Password:
>
> It again started asking for password. Then I created another ssh-key
> pair(with a passphrase this time) and stored it in ~/.ssh/id_dsa_push.pub.
> I copied this public key into my opensolaris account profile update. I
> contacted Mark J Nelson on IRC, he said that my public is already there
> in the database so there should not be any problem. This is what I get now:
>
> bash$ hg reparent ssh://onhg at onnv.sfbay.sun.com//export/onnv-gate
> bash$ hg pbchk
> Password: <entered correct string which I had entered as passphrase
> during generation of 2nd ssh-key pair>
>
> Did not work! :'(
>
> My ~/.ssh/config file is like this:
> Host onnv.sfbay
> IdentityFile ~/.ssh/id_dsa_push
>
> and one more additional info:
> bash$ ssh onhg at onnv.sfbay
> Enter passphrase for key '/home/sg201626/.ssh/id_dsa_push':
> *** ERROR: no SSH_ORIGINAL_COMMAND found
> *** ERROR: Do not attempt to log in as "onhg"
> Connection to onnv.sfbay closed.
>
> What I would like to have ?
> While my repository parent is $CLONE, I need not enter password for
> every hg command. It should be asked only when we reparent our
> repository to $GATE. (Thats why I setup up 2 keys, one without
> passphrase(id_dsa) and one with passphrase(id_dsa_push))
>
> Help me!
>
> Thanks,
> Sachin
> _______________________________________________
> scm-migration-dev mailing list
> scm-migration-dev at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/scm-migration-dev
>

Reply via email to