I can pull from ssh but not push using ssh. Pushing and pulling works over https.
Here are the basic commands I am trying to use:
{{{
hg clone ssh://hg@bitbucket.org/jfh/hgcollapse/
hg pull ssh://hg@bitbucket.org/dripton/hgcollapse/
hg update
hg push ssh://hg@bitbucket.org/jfh/hgcollapse/
}}}
on the last push I get a message:
"remote: abort: could not lock repository jfh/hgcollapse/: Permission denied"
However if the last command is:
{{{
hg push https://jfh:***@bitbucket.org/jfh/hgcollapse/\\
}}}
Then it works (Of course I replace the {***} with my password.)
What am I doing wrong? Any ideas of other information I need to provide? Or what is set up wrong?
===Notes:
I originally created two bitbucket accounts one jasonh and then later jfh. I was going to use them for separate things (jasonh a work related one, and jfh an open source related one...)
my bitbucket account jfh has my id_rsa.pub uploaded.
The name in the bitbucket account tab is the same as in my .hgrc file.
===Transcript:
{{
{\\
[Bolt:Volumes/QuickSilver/Development/sandbox] $
[Bolt:Volumes/QuickSilver/Development/sandbox] $ hg clone ssh://hg@bitbucket.org/jfh/hgcollapse/\\
destination directory: hgcollapse\\
requesting all changes\\
adding changesets\\
adding manifests\\
adding file changes\\
added 7 changesets with 7 changes to 1 files\\
updating to branch default\\
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
[Bolt:QuickSilver/Development/sandbox/hgcollapse] hgcollapse 6(6) $ hg pull ssh://hg@bitbucket.org/dripton/hgcollapse/\\
pulling from ssh://hg@bitbucket.org/dripton/hgcollapse/\\
searching for changes\\
adding changesets\\
adding manifests\\
adding file changes\\
added 4 changesets with 4 changes to 1 files\\
(run 'hg update' to get a working copy)
[Bolt:QuickSilver/Development/sandbox/hgcollapse] hgcollapse 6(10) $ hg update\\
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
[Bolt:QuickSilver/Development/sandbox/hgcollapse] hgcollapse 10(10) $ hg push ssh://hg@bitbucket.org/jfh/hgcollapse/\\
pushing to ssh://hg@bitbucket.org/jfh/hgcollapse/\\
searching for changes\\
remote: abort: could not lock repository jfh/hgcollapse/: Permission denied\\
abort: unexpected response: empty string
[Bolt:QuickSilver/Development/sandbox/hgcollapse] hgcollapse 10(10) $ hg push https://jfh:***@bitbucket.org/jfh/hgcollapse/\\
pushing to https://jfh:***@bitbucket.org/jfh/hgcollapse/\\
searching for changes\\
adding changesets\\
adding manifests\\
adding file changes\\
added 4 changesets with 4 changes to 1 files\\
}}
}