delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/09/09:46:30

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <ddc185be0810090645y77b2f717ua2cae59c261e67c8@mail.gmail.com>
Date: Thu, 9 Oct 2008 17:45:48 +0400
From: "Dmitry Semyonov" <linulin AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gui connecting to net shares from an ssh session
In-Reply-To: <48EDF810.2040403@liddicott.com>
MIME-Version: 1.0
References: <48EDF810 DOT 2040403 AT liddicott DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

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.

-- 
...Bye..Dmitry.

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