delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | "Charles D. Russell" <worwor AT bellsouth DOT net> |
Subject: | Re: configuration problem: ssh working but not sftp |
Date: | Wed, 26 Sep 2007 23:23:21 -0600 |
Lines: | 30 |
Message-ID: | <fdfdq5$2en$1@sea.gmane.org> |
References: | <46FB08C5 DOT 8010702 AT bellsouth DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0709262122120 DOT 16844 AT access1 DOT cims DOT nyu DOT edu> |
Reply-To: | worwor AT bellsouth DOT net |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.6 (Windows/20070728) |
In-Reply-To: | <Pine.GSO.4.63.0709262122120.16844@access1.cims.nyu.edu> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Igor Peshansky wrote: > On Wed, 26 Sep 2007, Charles D. Russell wrote: > >> Why does ssh work but not sftp? What is wrong with my configuration? >> sftp works OK in the other direction, from sony06 to dell03. >> >> cdr AT dell03 ~/cygarc >> $ sftp sony06 >> Connecting to sony06... >> Received message too long 1920298606 >> >> cdr AT dell03 ~/cygarc >> $ ssh sony06 >> Last login: Wed Sep 26 20:05:06 2007 from dell03 >> Fanfare!!! >> You are successfully logged in to this server!!! > > When you connect via ssh, you get a login shell. When you connect via > sftp, you get a non-login shell, which communicates with the sftp command > via standard output. Make sure your non-login shell doesn't print > anything (say, from .bashrc). Yes, echo from .bashrc was the problem. > > FWIW, 1920298606 in hex is 72756E6E (which also spells "runn"). > Coincidence? ;-) No. Thanks. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |