[Bug 496] add a timeout function to ssh-agent
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Feb 19 09:08:30 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=496
------- Additional Comments From jmknoble at pobox.com 2003-02-19 09:08 -------
> Do you have a binary of it?
No, i don't; i don't have a Cygwin environment to build or test on.
> 1) Is there no way to get a password into ssh-agent short of
> major environments such as X, Gtk, gnome and alike ?
Yes. x11-ssh-askpass uses a fairly simple "protocol" to get the passphrase to
ssh-add. From the man page:
If exactly one non-option argument is provided on the command line, it is
displayed in the dialog instead of the default label. If the argument
contains newline characters ('\n'), each line of text is displayed on a
separate line in the dialog.
ssh-add uses pipe(2)+fork(2)+dup(2)+exec(3) to run the ssh-askpass program with
its standard output connected back to a file descriptor in ssh-add.
When the passphrase is accepted (in the case of x11-ssh-askpass, when the 'OK'
button is clicked, or when [Enter] is pressed), the passphrase is printed on on the
standard output, followed by a newline ('\n').
If the passphrase dialog is cancelled, ssh-askpass prints nothing (not even a
newline) and exits (thus closing stdout).
I don't see why you couldn't write an ssh-askpass program that, for example, started
in a command window under Win32. For that matter, it's probably not that difficult for
an experienced Win32 programmer (which i am not) to write a Win32-native
ssh-askpass.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-unix-dev
mailing list