Can't push with SSH

Steve Losh avatarSteve 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 -R sjl/stevelosh/ serve --stdio"
sending hello command
sending between command
remote: 58
remote: capabilities: unbundle lookup changegroupsubset branchmap
remote: 1
pushing to ssh://
sending heads command
searching for changes
common changesets up to b8301b4e1d66
sending branchmap command
2 changesets found
list of changesets:
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

    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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.