delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/07/19:17:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 7 Sep 2005 19:16:52 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jack Offerman <jofferman AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: sftp "connection closed"
In-Reply-To: <9b83ffd9050907155754d21e1@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0509071910260.11417@slinky.cs.nyu.edu>
References: <9b83ffd905090709337e1bf8f2 AT mail DOT gmail DOT com> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050907172646 DOT 04743e18 AT pop DOT prospeed DOT net> <9b83ffd9050907155754d21e1 AT mail DOT gmail DOT com>
MIME-Version: 1.0

On Wed, 7 Sep 2005, Jack Offerman wrote:

> On 9/7/05, Larry Hall <lh-no-personal-replies-please AT XXXXXX DOT XXX> wrote:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > At 12:33 PM 9/7/2005, you wrote:
> > >When "ssh host" works but "sftp host" doesn't, where should I look?
> > >
> > >I appreciate your help.
> >
> > I guess you could try starting the server with debugging turned on and
> > see what you get from the logs there.  Results from that are usually
> > more instructive.
>
> It started working again after I changed /etc/passwd. When I recreated
> the file by doing mkpasswd -l, I also hand-editted something. That is
> the last part of the line, the login shell. Originally it was bash, and
> I changed it to tcsh. Being a tcsh fan all my life, I've always hated
> when I had to type "tcsh" right after logging in on a ssh session
> because the login shell is bash. When I did mkpasswd, I thought it was a
> perfect time to change my login shell to tcsh. And I was happy with the
> result: tcsh running as a login shell.
>
> With tcsh as a login shell, however, sftp didn't work.
> With bash, it is working now. So I take it.

This looks like a bug in sftp -- it should work regardless of what shell
you have as your default.  I'm guessing some environment variables
(probably PATH) aren't set up correctly if tcsh is used as the shell.
Try adding PATH settings, similar to those in /etc/profile, to
/etc/csh.cshrc, and see if it fixes your problem.  If it does, I'd submit
these changes as a patch to the "base-files" package.

Since, IIRC, the Cygwin openssh maintainer uses tcsh, I can only assume
she doesn't often use sftp... :-D

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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