X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: Access to Network Drive under ssh
Date:  Thu, 29 Jun 2006 13:14:56 -0500
Lines: 27
Message-ID: <e815b0$2e2$1@sea.gmane.org>
References:  <44A3F2F8.7010904@obbligato.org> <e80vfi$g0k$1@sea.gmane.org> <44A40668.20806@obbligato.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.4 (X11/20060516)
In-Reply-To: <44A40668.20806@obbligato.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

David Greene wrote:
> mwoehlke wrote:
>> Anyway, the way I generally get things... well, closer to working, is 
>> to create a service that calls 'bash -c <some-sshd-init-script>', and 
>> have the script issue a bunch of 'net use <foo> <bar>' commands and 
>> then exec sshd. That way you don't have to worry about connections 
>> being remembered, because they will always be created for you when 
>> sshd starts up.
> 
> That doesn't seem to work for me.  When I start the service (I called
> it mysshd), I get this in mysshd.log:
> 
> No valid response was provided.
>  \\samba-mendota\dag. Do you
> want to overwrite the remembered connection? (Y/N) [Y]:
> 
> An ssh session looks no different than before as far as
> network drives are concerned.

You need to first do:
net use /delete h:

...so that you don't get prompted

-- 
Matthew
Do not expose to extreme heat, cold, or open flame.


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

