delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/04/23:32:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Stuart Westbury <swestbury AT pulsemining DOT com DOT au>
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: <Pine.GSO.4.61.0505042321450.17497@slinky.cs.nyu.edu>
References: <200505050247 DOT j452leC13427 AT webmail DOT pulsemining DOT com DOT au>
MIME-Version: 1.0

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
<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>).
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 <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019