X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
Date: Thu, 09 Oct 2008 15:43:03 +0100
Subject: Re: gui connecting to net shares from an ssh session
Envelope-To: cygwin@cygwin.com
References: <48EDF810.2040403@liddicott.com> <ddc185be0810090645y77b2f717ua2cae59c261e67c8@mail.gmail.com>
Message-ID: <48EE1877.2090901@liddicott.com>
From: "Sam Liddicott" <sam@liddicott.com>
User-Agent: Thunderbird 2.0.0.17 (X11/20080925)
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

* Dmitry Semyonov wrote, On 09/10/08 14:45:
> On Thu, Oct 9, 2008 at 16:24, Sam Liddicott wrote:
>   
>> Part of what is being tested is connecting to remote shares.
>>
>> However :-) an ssh client login (even with a password) doesn't seem to
>> have the right domain credentials, so that a password prompt is
>> presented when a connection is made.
>>     
>  [...]
>   
>> How can I cause the ssh login to have these credentials so that it does
>> not prompt for a password?
>>     
>
> My scripts use the following command:
>
> net use \\\\$srv\\$share /user:$HOSTNAME\\$SHARE_USER $SHARE_PASS
>
> The credentials are read from a separate file.
>   

Even that only works for me if I have sshd run as a domain user, but
then I get the problem that the ssh user doesn't have desktop access

Sam

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

