Version Control Consolerevealed that things were getting hung up on:
remote: ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory. After confirming that there was no
ssh-askpasson my Mac OS X Leopard system, I turned to Google. After a few misses, I stumbled across Joe Mocker's blog post about VNC tunneled through SSH on OS X. Embedded in that post is this shell/AppleScript:
# An SSH_ASKPASS command for MacOS X
# Author: Joseph Mocker, Sun Microsystems
# To use this script:
# setenv SSH_ASKPASS "macos-askpass"
# setenv DISPLAY ":0"
DIALOG="display dialog \"$@\" default answer \"\" with title \"$TITLE\""
DIALOG="$DIALOG with icon caution with hidden answer"
result=`osascript -e 'tell application "Finder"' -e "activate" \
-e "$DIALOG" -e 'end tell'`
if [ "$result" = "" ]; then
echo "$result" | sed -e 's/^text returned://' -e 's/, button returned:.*$//'
I dropped this code into a script at
/usr/libexec/ssh-askpassand now when I push from IntelliJ:
Ugly, but it works. Now I just wish that the IntelliJ Mercurial plugin would consult the
.hg/hgrcfile for the remote repository or at least remember the value I type in when I pushed the last time, so I don't have to type in some long