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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=u4ndj eo61pMdHmeSBlo/tCamEE797/+rkkp1FiQFNZgxt2u0hxXSdoDdZuqGNrbc1xyJj dseFZ3J7Gog4e2EmLxmY9w0WUbVt5oNhCZlHAuwKaECFwWa828hJQF3IIJK194+H eXXT6pr/hOMrVgSUiiKmQr417HR4eDidMsKJsQ= 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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=rbkbszg9QfO 3vjMKYug/73SLXVw=; b=p2xinDoDeCXDoKQiokhfFUSauqPHLg/EcI8WRRFa2Ze 2t4/6oSUJ4lgUhvygHogjdPd0hkA+7fG521B55hU2Pg8dQadHDM5xVF1k4AESkc0 2YtPCexBQmXzwsVEAd3njxfWVFRAC4SI1nZzOrWL3CS8TUFb7Lnq9iYMpOdmk1gs = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=cygwincom, cygwin.com, Achim, achim X-HELO: vsmx012.vodafonemail.xion.oxcs.net From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Issue running PowerShell code on Windows Machine from Linux machine using Cygwin References: Date: Mon, 30 Jul 2018 21:05:56 +0200 In-Reply-To: (Shekhar Shukla's message of "Mon, 30 Jul 2018 16:50:39 +0530") Message-ID: <87tvogczmz.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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. 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. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada -- 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