delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/24/13:16:45

X-Spam-Check-By: sourceware.org
Message-Id: <200512241816.jBOIGULc023975@tigris.pounder.sol.net>
Reply-to: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: cygwin AT trodman DOT com (Tom Rodman)
Subject: Re: ssh localhost date #fails for me on two boxes
In-reply-to: <200512231711.jBNHBvBl016124@tigris.pounder.sol.net>
References: <200512231711 DOT jBNHBvBl016124 AT tigris DOT pounder DOT sol DOT net>
Date: Sat, 24 Dec 2005 12:16:29 -0600
X-IsSubscribed: yes
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

Problem:  'ssh localhost date' asks for password, I type it, I'm
          authenticated, but no output is seen from the date command
          (original post has details)

Corrina, and cgf wrote WJFFM:
  http://cygwin.com/ml/cygwin/2005-12/msg00801.html 

So what is special about my setup? What additional information should
I supply? Are there any debugging approaches you can suggest? Could I
somehow run strace, if so please give me the exact command line(s).

My understanding, based on a few quick tests, is that for 'ssh localhost
date', none of bash's startup files, including /etc/profile for example
are read; so my customizations of those files should not matter. Can
anyone suggest some other cause? I've tried prepending "/bin" to the
PATH just prior to running the ssh; no joy.

How can we account for the fact that if I fall back to the Dec 16
snapshot, the problem goes away?

I don't plan to give a detailed report today, but here are a few things
I've tried.. I'm able to duplicate this problem on my single CPU w2k
PC at home; the posted problem for this thread is for a dual CPU,
hyper-threaded box at work.

At home I disabled sshd, and installed a test version using:

  cygrunsrv -I sshd_test -p /usr/sbin/sshd.exe -a '-ddd' -e CYGWIN="$CYGWIN"
  # CYGWIN is set to 'binmode tty ntsec smbntsec'

Here is a test run on my home PC for this "sshd_test"/debug-version of sshd:

  $ uname -a # the failing case
  CYGWIN_NT-5.0 argon 1.5.19s(0.149/4/2) 20051222 21:35:16 i686 unknown unknown Cygwin
  $ ssh localhost -l adm_tsr date  
  adm_tsr AT localhost's password:
  debug1: permanently_set_uid: 1000/513
  debug3: Copy environment: ALLUSERSPROFILE=D:\\Documents and Settings\\All Users
  debug3: Copy environment: COMMONPROGRAMFILES=D:\\Program Files\\Common Files
  debug3: Copy environment: COMPUTERNAME=ARGON
  debug3: Copy environment: COMSPEC=D:\\WINNT\\system32\\cmd.exe
  debug3: Copy environment: CYGWIN=binmode tty ntsec smbntsec
  debug3: Copy environment: NUMBER_OF_PROCESSORS=1
  debug3: Copy environment: OS=Windows_NT
  debug3: Copy environment: PATH=/drv/d/WINNT/system32:/drv/d/WINNT:/drv/d/WINNT/System32/Wbem:/aut/perl5/bin:/drv/d/opt/w2ksuptools/:/drv/d/opt/reskit/nt5:/drv/d/opt/reskit/nt4:/drv/d/Program Files/Visual Networks/Dial Analysis/:/drv/d/opt/QuickTime/QTSystem/:/bin
  debug3: Copy environment: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
  debug3: Copy environment: PROCESSOR_ARCHITECTURE=x86
  debug3: Copy environment: PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 0, GenuineIntel
  debug3: Copy environment: PROCESSOR_LEVEL=6
  debug3: Copy environment: PROCESSOR_REVISION=0500
  debug3: Copy environment: PROGRAMFILES=D:\\Program Files
  debug3: Copy environment: SYSTEMDRIVE=D:
  debug3: Copy environment: SYSTEMROOT=D:\\WINNT
  debug3: Copy environment: TEMP=/drv/d/TEMP
  debug3: Copy environment: TMP=/drv/d/TEMP
  debug3: Copy environment: WINDIR=D:\\WINNT
  Environment:
    ALLUSERSPROFILE=D:\Documents and Settings\All Users
    COMMONPROGRAMFILES=D:\Program Files\Common Files
    COMPUTERNAME=ARGON
    COMSPEC=D:\WINNT\system32\cmd.exe
    CYGWIN=binmode tty ntsec smbntsec
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    PATH=/drv/d/WINNT/system32:/drv/d/WINNT:/drv/d/WINNT/System32/Wbem:/aut/perl5/bin:/drv/d/opt/w2ksuptools/:/drv/d/opt/reskit/nt5:/drv/d/opt/reskit/nt4:/drv/d/Program Files/Visual Networks/Dial Analysis
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 0, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0500
    PROGRAMFILES=D:\Program Files
    SYSTEMDRIVE=D:
    SYSTEMROOT=D:\WINNT
    TEMP=/drv/d/TEMP
    TMP=/drv/d/TEMP
    WINDIR=D:\WINNT
    USER=adm_tsr
    LOGNAME=adm_tsr
    HOME=/home/adm_tsr
    MAIL=/var/spool/mail/adm_tsr
    SHELL=/bin/bash
    SSH_CLIENT=127.0.0.1 1799 22
    SSH_CONNECTION=127.0.0.1 1799 127.0.0.1 22
  debug3: channel 0: close_fds r -1 w -1 e -1 c -1
  $ echo $PATH
  /home/Administrator/bin:/usr/bin:/aut/m:/aut/ulb:/adm/bin/sys:/adm/bin/app:/contrib/bin:/drv/d/WINNT/system32:/drv/d/WINNT:/drv/d/WINNT/System32/Wbem:/drv/d/opt/w2ksuptools/:/drv/d/opt/reskit/nt5:/drv/d/opt/reskit/nt4:/drv/d/Program Files/Visual Networks/Dial Analysis/:/drv/d/opt/QuickTime/QTSystem/:.
  $ echo $CYGWIN
  binmode tty ntsec smbntsec

For reference here is a working case (same PATH setting):

  $ uname -a
  CYGWIN_NT-5.0 argon 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
  $ ssh localhost -l adm_tsr date #date output shows up on last line below:
  adm_tsr AT localhost's password:
  debug1: permanently_set_uid: 1000/513
  debug3: Copy environment: ALLUSERSPROFILE=D:\\Documents and Settings\\All Users
  debug3: Copy environment: COMMONPROGRAMFILES=D:\\Program Files\\Common Files
  debug3: Copy environment: COMPUTERNAME=ARGON
  debug3: Copy environment: COMSPEC=D:\\WINNT\\system32\\cmd.exe
  debug3: Copy environment: CYGWIN=binmode tty ntsec smbntsec
  debug3: Copy environment: NUMBER_OF_PROCESSORS=1
  debug3: Copy environment: OS=Windows_NT
  debug3: Copy environment: PATH=/drv/d/WINNT/system32:/drv/d/WINNT:/drv/d/WINNT/System32/Wbem:/aut/perl5/bin:/drv/d/opt/w2ksuptools/:/drv/d/opt/reskit/nt5:/drv/d/opt/reskit/nt4:/drv/d/Program Files/Visual Networks/Dial Analysis/:/drv/d/opt/QuickTime/QTSystem/:/bin
  debug3: Copy environment: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
  debug3: Copy environment: PROCESSOR_ARCHITECTURE=x86
  debug3: Copy environment: PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 0, GenuineIntel
  debug3: Copy environment: PROCESSOR_LEVEL=6
  debug3: Copy environment: PROCESSOR_REVISION=0500
  debug3: Copy environment: PROGRAMFILES=D:\\Program Files
  debug3: Copy environment: SYSTEMDRIVE=D:
  debug3: Copy environment: SYSTEMROOT=D:\\WINNT
  debug3: Copy environment: TEMP=/drv/d/TEMP
  debug3: Copy environment: TMP=/drv/d/TEMP
  debug3: Copy environment: WINDIR=D:\\WINNT
  Environment:
    ALLUSERSPROFILE=D:\Documents and Settings\All Users
    COMMONPROGRAMFILES=D:\Program Files\Common Files
    COMPUTERNAME=ARGON
    COMSPEC=D:\WINNT\system32\cmd.exe
    CYGWIN=binmode tty ntsec smbntsec
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    PATH=/drv/d/WINNT/system32:/drv/d/WINNT:/drv/d/WINNT/System32/Wbem:/aut/perl5/bin:/drv/d/opt/w2ksuptools/:/drv/d/opt/reskit/nt5:/drv/d/opt/reskit/nt4:/drv/d/Program Files/Visual Networks/Dial Analysis
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 0, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0500
    PROGRAMFILES=D:\Program Files
    SYSTEMDRIVE=D:
    SYSTEMROOT=D:\WINNT
    TEMP=/drv/d/TEMP
    TMP=/drv/d/TEMP
    WINDIR=D:\WINNT
    USER=adm_tsr
    LOGNAME=adm_tsr
    HOME=/home/adm_tsr
    MAIL=/var/spool/mail/adm_tsr
    SHELL=/bin/bash
    SSH_CLIENT=127.0.0.1 1867 22
    SSH_CONNECTION=127.0.0.1 1867 127.0.0.1 22
  debug3: channel 0: close_fds r -1 w -1 e -1 c -1
  Sat Dec 24 11:45:21 CST 2005

My next idea, is to try a fresh install of cygwin with no customizations
at all, on my laptop.

Maybe I'll get lucky, and someone other than me, w/developer skills
will duplicate the problem, just try:

  ssh localhost date  #pls use a snapshot after Dec 16

--
thanks much,
Tom

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