Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 4 May 2005 23:32:20 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Stuart Westbury cc: cygwin AT cygwin DOT com Subject: RE: SSHD key based authentication hangs cscript In-Reply-To: <200505050247.j452leC13427@webmail.pulsemining.com.au> Message-ID: References: <200505050247 DOT j452leC13427 AT webmail DOT pulsemining DOT com DOT au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 5 May 2005, Stuart Westbury wrote: > Thanks for the prompt response Corinna. > > At least I now know. > > Can anybody suggest a way of doing this? Can the runas service be used > to gain a new token or will it suffer the same problem? I have attempted > to use it, but the results were unusual. It prompted me for a password > and just drops me back to the shell without the opportunity to even > enter one. > > On a similar note, can anyone who may have had this issue suggest any > alternative way to run remote commands on a windows box from linux with > some form of transparent authentication, or am I dreaming? :) Well, if you only ever log in as one user, you can run sshd as that particular user (maybe on a special port if you need a regular sshd daemon as well). That way, even if public key auth is used, the token will be valid. See the --user option to cygrunsrv. If you need multiple users to log in, you can try to get runas to prompt you for a password properly, but that may be tricky. Try playing with the "tty" value in the CYGWIN variable (see ). HTH, Igor > [snip] > > -----Original Message----- > From: cygwin-owner AT XXXXXX DOT XXX [mailto:cygwin-owner AT XXXXXX DOT XXX] On Behalf Of Corinna Vinschen > Sent: Wednesday, 4 May 2005 7:03 PM > To: cygwin AT XXXXXX DOT XXX > Subject: Re: SSHD key based authentication hangs cscript Oh, and . Thanks. > On May 4 11:15, Stuart Westbury wrote: > > "There are actually two problems here: 1) a problem with CygWin/OpenSSH > > (after public key authentication GetUserName() returns incorrect > > value)..........." > > > > Is this my problem? > > No, that's our problem. There's nothing we can do about it, I'm sorry. > [snip] -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/