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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=y0N0eVYmcC+Fw1ea WrYO0f5ZX4IpYLF2w/a5tHYzaSxMhDA5QIWc6d5pMNEgDyPSC6CJvsGoL+OnZeBL D2j/YLy5xHESYO56B629ya2CEz376px24rrTPnPbm+/1mTChnTuUsSH1Jad6F7fO sL/u0n5lHH0DnGIYC3VB/jcdryU= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=dqHyMOxv7qWjsAny1rxQB7 3x2g0=; b=ZkJigaGBolJ2chzsqTd9go7fLWKLz3tkQ2qXZ3VAJrOTIWZ94Lku5M lvWSIM9A92317i9/VIq2Fybc3vS20RwMNxabbvFqtHNZ49slJtI7HVYhb5uETOka KGl5AxL659an5kD4Rra0h2b69sYKMKctavHTifbK+Hm5fmLKtr+PU= 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-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.2 required=5.0 tests=AWL,BAYES_95,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Fri, 2 Oct 2015 02:26:31 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1689112444.20151002022631@yandex.ru> To: "Blando, Frank (Helion Managed Engineering)" , cygwin AT cygwin DOT com Subject: Re: ssh with password allows commands that fail with ssh via key In-Reply-To: <3FDF3C3C0433F04C8E22F9B8502B6837826D83FB@G9W0741.americas.hpqcorp.net> References: <3FDF3C3C0433F04C8E22F9B8502B6837826D83FB AT G9W0741 DOT americas DOT hpqcorp DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Blando, Frank (Helion Managed Engineering)! > I suspect this is already answered somewhere, but my googling has not brought up an answer. > Environment: > CygWin with OpenSSH 6.6.1p1-3 on Windows 2012 R2. Using the domain > administrator account as the target on Windows. > Issue: > When I ssh into Windows from Linux, if I use a password, "powershell > -command get-cluster" works. If I use key (store in .ssh/authorized_keys), > "powershell -command get-cluster" returns access denied. Simpler commands do > not appear to make a distinction and work equally well with password or keys. Please read the documentation. It is explicitly explained there in great detail. http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview -- With best regards, Andrey Repin Friday, October 2, 2015 02:24:20 Sorry for my terrible english... -- 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