This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: win-ssh-askpass not working.


On Thu, 22 Jan 2004, Alexander Gottwald wrote:

> Steve Howie wrote:
>
> > Can't get it to work - set up the win-ssh-agent, ran the ssh command
> > from a script after setting the DISPLAY and SSH_ASKPASS environment
> > variables and SSH still prompted me for a password - no askpass window
> > popped up. Any ideas??
> >
> > Running on Windows XP Professional.
>
> > Script (as suggested by Alexander Gottwald):
> >
> > #!/bin/bash
> > export DISPLAY=localhost:0.0
> > export SSH_ASKPASS="/usr/bin/win-ssh-askpass.exe"
> > ssh -f -X <host> -l username "/opt/SAS82/sas"
>
> I've done some test on it yesterday and it showed that the askpass program
> is only executed when the ssh has no terminal. On linux I could start the
> ssh from gvim and the it started x11-ssh-askpass. But on windows ssh was
> always started in a console window.
>
> Maybe the run.exe utility might help. But I've never used it and have no
> links and further information on it. run.exe will start programs without
> console windows. Then ssh has no terminal and it must start win-ssh-askpass.

IIUC, that's exactly what the "setsid" command is intended to accomplish.
You can also try using bash's "disown" builtin.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]