www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/21/11:26:31

X-Spam-Check-By: sourceware.org
Date: Wed, 21 Jun 2006 11:25:56 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: John McNulty <johnmcn1 AT googlemail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: ssh password-less cmds to Windows 2003 don't return any output
In-Reply-To: <ab50889f0606210407o5cec13c3ha9c0b6a496b99ebd@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0606211113560.24426@access1.cims.nyu.edu>
References: <ab50889f0606210407o5cec13c3ha9c0b6a496b99ebd AT mail DOT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Wed, 21 Jun 2006, John McNulty wrote:

> Hello,
>
> I've been testing executing command via password-less SSH (public key)
> logins from  MacOSX and OpenVMS clients to a Redhat EL AS 4 server,
> and a WinXP Home system (with Cygwin's OpenSSH).  All works ok and I
> can issue test commands like:
>
> $  ssh administrator AT host ipconfig
>
> and see the output from ipconfig on the client.
>
> However I've just installed and configured Cygwin OpenSSH on a Windows
> 2003 server, and setup password-less logins (via public keys) as
> before. But when I try and issue a command via ssh from the client I
> get no command output back at all.  The remote command just completes
> silently.  The password-less login is working just fine.
>
> Does anyone else see this and have any idea why I'm getting this
> behavior?

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).

> I followed the instructions in ssh-host-config and opted to use the
> sshd_server account (which kind of caught me by surprise).  Obviously
> this changes the way ssh works on Cygwin a little.

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.

> Ultimately the object of the exercise here is to drive a CLI app on
> Windows 2003 from batch jobs on OpenVMS.  Cygwin OpenSSH is the only
> way I've been able to think of to solve this problem.  The other
> clients and servers are only being used to test my methodology is
> correct, and it works flawlessly on WinXP Home.

You are not guaranteed that the program you want to drive will work with a
pty.  The easiest way to check is to run the application in rxvt.  If that
works, your app will probably work over ssh as well.  If it doesn't, don't
even bother to set up ssh.  Whether or not this works is specific to the
application you intend to run.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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