delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/28/10:02:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <sc2c4313.053@pplant.msu.edu>
X-Mailer: Novell GroupWise Internet Agent 5.5.4.1
Date: Fri, 28 Dec 2001 10:01:46 -0500
From: "John Fishbeck" <jbfishbe AT pplant DOT msu DOT edu>
To: <peter DOT buckley AT cportcorp DOT com>, <cygwin AT cygwin DOT com>
Subject: Re: Can't spawn shell for authenticated user in SSHD
(revisited)
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id fBSF2dq08821

Thanks for the reply Peter. While your suggestions didn't fix the problem, they did get me thinking and digging back into things.

Ultimately turned out that the problem was that while the system PATH environment variable had "c:\cygwin" defined, it did not include path "c:\cygwin\bin". I was starting sshd from the c:\cygwin\bin directory, but I'll bet that when new sshd process was spawned for the incoming connection, it wasn't finding cgywin1.dll, and possibly other needed components, in the c:\cygwin\bin directory because it wasn't in the path. Once c:\cygwin\bin was in the path, everything worked swell.

Regards,
John

>>> Peter Buckley <peter DOT buckley AT cportcorp DOT com> 12/27/01 01:42PM >>>
> I am taking a wild guess- when you ssh in, it spawns a shell and then 
> still does some ssh-ish tasks. Maybe it can't complete them from the 
> command shell.
> 
> Are you logging in or just firing off remote processes?
> 
> It might be worth trying to set your shell to /bin/bash, ssh in and see 
> if you can then start a command shell. Maybe-
> 
> ssh machine "cd /cygdrive/c/path-to-batch-file; cmd /c mytest.bat; sleep 2"
> 
> (the 'sleep x' might not be necessary with ssh, but it is with rsh if 
> you want all the output from the last command)
> 
> I don't have sshd running anywhere remotely, but I can rlogin to a 
> machine running inetd, it starts a bash shell, and then I type "cmd" and 
> it gives me a command shell.
> 
> HTH (or at least spawns some discussion),
> Peter
> 
> John Fishbeck wrote:
> 
>> Hi all,
>> 
>> I posted the message appended at the end of this one last week, and didn't receive a _single_ response to it. This leads me to believe that either 1) I have unwittingly committed some horrendous faux pax, despite the fact that I did attempt to research this problem before posting to this list, or 2) this is a bizarre problem which others have not encountered nor know what to do about.
>> 
>> If (1) above, I sincerely apologize and ask forgiveness, and would urge some kind soul to take pity on me and direct me to the problem solution that I missed in my research. If (2), I guess I'm just going to have to abandon the Cygwin OpenSSH solution and figure out some other approach - perhaps MS telnet service (shudder...).
>> 
>> Anybody out there gonna take pity on a poor IT schmuck in need of help?
>> 
>> John Fishbeck
>> MSU Physical Plant Computer Systems



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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