delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/20/20:51:31

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47BCD8EC.3070003@cygwin.com>
Date: Wed, 20 Feb 2008 20:50:36 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Success in accessing network shares on windows through sshd
References: <47B8B282 DOT 1050609 AT cygwin DOT com> <47BA297C DOT 8020309 AT fiveam DOT org>
In-Reply-To: <47BA297C.8020309@fiveam.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Jani Saksa wrote:
> Larry Hall (Cygwin) wrote:
>> Currently, the way to get what you want is to ssh in with password
>> authentication.  That way, Windows knows who you are and that you are
>> allowed access to network shares.  When you ssh in with pubkey
>> authentication, you are not authenticated through Windows but
>> rather the user running the sshd service.  So you don't have access
>> to your mapped network drives (automatically) since Windows doesn't
>> recognize you as you.  The fact that you can have a screen session that
>> was started locally (as you) on that remote machine and then reconnect to
>> that session when you log in with pubkey ssh in no way means that ssh now
>> understands you as you.  It just means you've connected up to a local
>> instance of screen started by a fully authenticated session.  This is 
>> doing
>> nothing more than ssh with password authentication but with added user
>> hassle, since they need to be co-located with the remote machine so that
>> they can start up an authenticated screen session to leverage from their
>> ssh (pubkey or not) session.  I don't see that as a better option than 
>> just
>> sshing in with password authentication and skipping all the extra 
>> effort of
>> creating a local session of screen first.
> 
> Hmm, this sounds weird because I did connect with password 
> authentication, not with pubkey but was not able to see the one share 
> that needed authentication to be mapped (but I did see all public shares 
> - as it should be, right?). I wonder then why did I not see that 
> non-public share by just logging on ssh with password, huh?

I can see everything  with 'net use' through ssh with password
authentication.  I still need to "remap" the drive I've mapped it
to, if that's what I want to use.  Perhaps if you're still having
problems and can't figure it out, it's time to start over and send
the list a clear set of steps that you take and the results you
see.  Then perhaps I or others on the list can see your problem
and offer a solution.

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

- Raw text -


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