X-Spam-Check-By: sourceware.org
Message-ID: <ab50889f0606211009x587442e8waca460c03d01c1de@mail.gmail.com>
Date: Wed, 21 Jun 2006 18:09:02 +0100
From: "John McNulty" <johnmcn1@googlemail.com>
To: cygwin@cygwin.com
Subject: Re: ssh password-less cmds to Windows 2003 don't return any output
In-Reply-To: <Pine.GSO.4.63.0606211113560.24426@access1.cims.nyu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ab50889f0606210407o5cec13c3ha9c0b6a496b99ebd@mail.gmail.com> 	 <Pine.GSO.4.63.0606211113560.24426@access1.cims.nyu.edu>
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

On 21/06/06, Igor Peshansky <pechtcha@cs.nyu.edu> wrote:
>
> Cygwin ssh (and basically all terminals except the Windows console) use
> pipes to emulate ttys (so-called "ptys").  Some Windows applications don't
> like these ptys and won't write data to them (and they will certainly not
> detect them as a console, so any console-specific functions won't work
> either).

Hmm .. this is where it gets even more interesting.  If I run:

$ ssh user@W2003 date
Wed Jun 21 18:02:13 GMTDT 2006

.. then I get a result.  But other commands don't, e.g.

$ ssh user@W2003 cat /etc/hosts
$ ssh user@W2003 ls


> On Windows 2003, SYSTEM does not have the appropriate privileges to switch
> user contexts, so ssh-host-config needs to create an account that does.
> Read <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch> for
> details.

Before running ssh-host-config I did:

- Right click My Computer, Properties > Advanced > Environment Variables
- Under System Variables, click New, add CYGWIN as the variable name,
add ntsec as the variable value
- Under System Variables, scroll down to Path, click Edit, add
;c:\cygwin\bin to the end of the string already in the field

Then opened Cygwin on the desktop, ran ssh-host-config and entered:

"Privilege Separation?" Yes
"Create local user SSHd?" Yes
"Install SSHd as a service?" Yes
"CYGWIN = " enter ntsec

Should I have done anything different there on W2003 ?


Regards,

John

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

