[Bug 1342] New: SSH_ASKPASS not working as expected

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 20 22:58:08 EST 2007


           Summary: SSH_ASKPASS not working as expected
           Product: Portable OpenSSH
           Version: 4.6p1
          Platform: All
        OS/Version: Cygwin on NT/2k
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: jan.alphenaar at dotcolour.com

I have set up SSH with the SSH_ASKPASS and DISPLAY variable set.
Everything works perfectly. When ssh is used without a tty, the askpass
program is executed, providing the password.

But when I change the location of the askpass program, so it contains a
space in the absolute path name (for example "c:\My Documents\askpass")
the askpass program cannot be found. I get a "c:\My is not recognized
as an internal or external command, operable program or batch file"
error message back.

This indicates that openssh executes the askpass program with an
absolute path, without decently quoting the string (surrounding it with
"" characters). I am using the cygwin implementation of openssh,
currently version 4.6p1. But I expect this bug to appear in all
operating systems, supporting a space in file and directory names.

Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list