sshd - inconsistent app behavior vs console

Derek Lei Liu derek.lei.liu@gmail.com
Sun Dec 23 01:57:00 GMT 2007


This problem has dragged me for a long time. ( i was trying to make 
devenv.exe work through sshd on cygwin). My conclusion is that you can use 
password authentication, otherwise it won't work. (if you use password 
authentication, it should work, otherwise you have different problem). My 
understanding of the problem is that: sshd is running under a system user 
which is SYSTEM on your windows. So if you are using a different user, say 
JohnSmith, to ssh log in, and you are not using password authentication, you 
are in fact not properly authenticated with Windows. So windows still 
consider your session is under SYSTEM, not JohnSmith. (to verify that, once 
you ssh in and got a bash shell, look at USERNAME). Only if you use password 
authentication and explicitly typed the password, Windows can get you 
authenticated properly and then your ssh session is running under JohnSmith. 
This user difference caused some application (in my case devenv.exe) 
permission problem and the application can not run correctly.

So now, i am using Expect to explicitly "type" password to emulate 
passwordless log in, to some extend.

Derek
----- Original Message ----- 
From: "barboles" <enrique7199@ya.com>
To: <cygwin@cygwin.com>
Sent: Saturday, December 22, 2007 10:58 AM
Subject: Re: sshd - inconsistent app behavior vs console


>
> Hello, I've got the same problem. Does Anybody know the solution? how Can 
> I
> resolve this problem?
> please help me?
>
>
> Larry Hall (Cygwin) wrote:
>>
>> Larkin Lowrey wrote:
>>> Larry Hall (Cygwin) wrote:
>>>> You've left allot for us to infer from your description, including your
>>>> Cygwin configuration (sshd and general), how you ssh in (password or
>>>> pubkey), and even what vshadow is!  I'd recommend a read through of
>>>> the problem reporting guidelines found here:
>>>>> Problem reports:       http://cygwin.com/problems.html
>>>> My WAG is that you're using pubkey authentication.  If so, try 
>>>> password.
>>> I apologize for not providing enough information but you did come up
>>> with the correct reason. When I logged in via password, and not public
>>> key, the vshadow program did function correctly.
>>>
>>> After doing some searching I have concluded that this operation is not
>>> possible using public key authentication.
>>
>>
>> Right.  Not in 1.5.x.
>>
>>
>> -- 
>> Larry Hall                              http://www.rfk.com
>> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>> 216 Dalton Rd.                          (508) 893-9889 - FAX
>> Holliston, MA 01746
>>
>> _____________________________________________________________________
>>
>> A: Yes.
>>  > Q: Are you sure?
>>  >> A: Because it reverses the logical flow of conversation.
>>  >>> Q: Why is top posting annoying in email?
>>
>> --
>> 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/
>>
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/sshd---inconsistent-app-behavior-vs-console-tp11545397p14472206.html
> Sent from the Cygwin list mailing list archive at Nabble.com.
>
>
> --
> 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/
> 


--
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/



More information about the Cygwin mailing list