1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #1684 invalid

Can't push with SSH

Steve Losh
created an issue

I can't seem to push to any of my remote repositories over SSH. I can push over HTTPS just fine. The problem just started happening today, and I didn't change my keys or anything between yesterday and today.

Here's what I get when I try to push:

{{{ $ hg push --debug running ssh hg@bitbucket.org "hg -R sjl/stevelosh/ serve --stdio" sending hello command sending between command remote: 58 remote: capabilities: unbundle lookup changegroupsubset branchmap remote: 1 pushing to ssh://hg@bitbucket.org/sjl/stevelosh/ sending heads command searching for changes common changesets up to b8301b4e1d66 sending branchmap command 2 changesets found list of changesets: 896c2c5088b72e21238c7a83c926d26f7ad9d8d5 f0893962e90693f9e037382b2154df8f14743b74 sending unbundle command remote: adding changesets remote: adding manifests remote: adding file changes remote: added 2 changesets with 2 changes to 2 files remote: error: pretxnchangegroup.bb_perm hook failed: You're not allowed to write to this repository. remote: transaction abort! remote: rollback completed remote: abort: You're not allowed to write to this repository. abort: unexpected response: empty string }}}

Comments (2)

  1. Steve Losh reporter

    I figured it out -- somehow one of my SSH keys got added to ssh-agent but the other did not. The one that was not added was the one I use for BitBucket, and I guess SSH didn't want to try the other one since it wasn't in ssh-agent.

  2. Log in to comment