delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/31/07:35:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=GfL6jJeDCCryXX+Q
moEzJxm8zJURAJp7nfnXMNXcsuP8/n+9t9p5vrTiALnjlWii4jCzstUZfinWl/5f
a0o086ZWRvSOtUnQCVn+MjyyNHgqnTfjhDqJFkRBDG5rpygTbTd5+x01X3o4z/Mm
bW10R7ZZXYzjxPlQ3W9RlnHQk/8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=9YCnF7rawcdO4NHYXKt1Ni
nTUfg=; b=Ph2onXNews1+M5dsr0ZcVSpOU9usbvX3brHXZ2GWq/u9a7wKPZf2Dn
qCt7Baheyc6Q8U1rrqn1E2Dseb2cBYHHB6hzP4d6OcYop+1tka0rmPHUmFdhdPjn
OKXsSi3yRa6rpU2HEEFxfoqHuQtavYcK0hTUvN0yQbL/Hf57bTGCU=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=Gratz, gratz, mounts
X-HELO: mout.kundenserver.de
Subject: Re: Issue running PowerShell code on Windows Machine from Linux machine using Cygwin
To: cygwin AT cygwin DOT com
References: <CAE=7pzxgiLTtoMSKe-9b8wffWH64biOp_QbEhDWNfgDiYg1SgA AT mail DOT gmail DOT com> <87tvogczmz DOT fsf AT Rainer DOT invalid>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <732a6d29-4c9b-c044-423a-31bdcf7b7d1a@towo.net>
Date: Tue, 31 Jul 2018 13:34:51 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <87tvogczmz.fsf@Rainer.invalid>
X-IsSubscribed: yes

Am 30.07.2018 um 21:05 schrieb Achim Gratz:
> Shekhar Shukla writes:
>> I am having issue while establishing a ssh connection from Linux to Windows
>> machine using Cygwin. My powershell script works when I run it from Linux
>> using ssh connection(Cygwin) to Windows  and manually enter my passowrd.
>> But whn I use public key to authenticate my user(making a password less
>> connection), it fails. Is it a bug with CYgwin?
> No, Windows simply does not give you full access to your normal
> privileges when you log in remotely without a password.  Specifically,
> you won't be able to access anything that is considered non-local, like
> external fileshares.
If I setup password-less login to the cygwin ssh server, using 
authorized-keys, I can access all remote shares from cygwin,
and also from cmd, started from cygwin with `winpty cmd`, for that matter.
Possibly, if the remote login is the first login of the user, the mounts 
will just have to be established? (Using `net use`)

> See: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview
>
> If you trust the server in question and all its administrators and other
> users, you can use "Method 3" as described above.  Don't forget to set
> up cygserver if you want to be able to set or change the password with a
> non-administrative account.
>
>
> Regards,
> Achim.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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