github-for-mac-issues icon indicating copy to clipboard operation
github-for-mac-issues copied to clipboard

ssh_askpass

Open marclipovsky opened this issue 13 years ago • 2 comments

I'm getting this when I try to sync a repo:


Any thoughts?

marclipovsky avatar Jun 25 '11 10:06 marclipovsky

I was having this issue too. I resolved it by creating this ssh-askpass script at /usr/libexec. I tried this a few weeks ago without success. It may be working now because I installed SSH Agent. Hope this helps!

Content of script, for convenience:

#! /bin/sh

TITLE=${MACOS_ASKPASS_TITLE:-"SSH"}  

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
    exit 1
else
    echo "$result" | sed -e 's/^text returned://' -e 's/, button returned:.*$//'
    exit 0
fi

zourtney avatar Aug 18 '11 18:08 zourtney

Thanks I'll check this out. How do you have SSH Agent running? Cause it's not able to run on Lion

marclipovsky avatar Aug 29 '11 11:08 marclipovsky