X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 21 Jan 2008 00:23:44 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ssh interactive shell not working
Message-ID: <20080121052344.GB19061@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <A70479AEC9AB3A4CBDDAE972AA9BD774056D0B@dellsc1420a.wme.local> <4790b28b.1235640a.1f2e.7b29@mx.google.com> <001e01c859e0$a63dbf30$2e08a8c0@CAM.ARTIMI.COM> <47916feb.21d8480a.57ed.6387@mx.google.com> <47937857.50302@saic.com> <4793CD30.50906@cygwin.com> <4793d3f2.22e7480a.629f.10e6@mx.google.com> <4793D619.2080302@cygwin.com> <4793dc8e.0580400a.7fb7.ffff84f2@mx.google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4793dc8e.0580400a.7fb7.ffff84f2@mx.google.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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 Sun, Jan 20, 2008 at 05:42:57PM -0600, Kyle A. Dawson wrote:
>>     If I leave out the -k, I get no prompt but I am in, I can run commands, etc.
>
>
>I was meaning the -i
>
>I search the entire computer and only found the one bash.exe, in the
>existing cygwin home
>
>Here are my cases:
>
>1) If am on the ssh server itself, all works fine, I can logon via ssh
>localhost or ssh myhost.  Get prompt and all looks good.
>2) If I logon to the ssh server from any other machine with bash -i,
>"ssh myhost bash -i", all works fine, I get a prompt and can run
>commands
>3) If I logon to the ssh server from any other machine the normal was,
>ssh myhost, it closes connections right away
>4) If I logon to the ssh server from any other machine to just run a
>command, it works fine.  The command runs on ssh server and shell comes
>back
>	ssh myhost ls -lart
>      ssh myhost hostname
>5) If I logon to ssh server from another computer behind the router,
>some subnet as server, using the server private ipaddress,
>192.168.1.125, still get same issue.  So it is not a router issue.
>
>It appears the issue is something to do with running the bash shell by
>default, it just does not for some reason.  I thought something was
>messed up with the cygwin config/install, so I deleted the dir and
>installed from scratch.  But I get the same errors.

It sure sounds like you are using some non-cygwin version of either sshd
or bash and that the bash you're running isn't recognizing the pty that
the sshd server has started.

You are running the cygwin ssh server right?

cgf

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

