delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/02/16:50:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.7 required=5.0 tests=AWL,BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4E3862EA.9070000@cygwin.com>
Date: Tue, 02 Aug 2011 16:49:46 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: sshd failes allocating /dev/tty[0-9]
References: <4E36CB68 DOT 3000606 AT ank-sia DOT com> <4E36D731 DOT 2090104 AT ank-sia DOT com> <4E37E062 DOT 1010508 AT ank-sia DOT com>
In-reply-to: <4E37E062.1010508@ank-sia.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

On 8/2/2011 7:32 AM, Alexey Luchko wrote:
>>> Cygwin Configuration Diagnostics atteched.
>  >
>  > Maybe crank up the debugging flags to maximum? I assume sshd is still
>  > stopped from your last run of sshd -d. If that doesn't sound right to
>  > you, you may want to investigate why it's not running now.
>
> sshd was stopped while that run because it did not login anyway. and still
> don't.

sshd will run even if you're having problems connecting to it.  I'm just
making sure that you are testing with a running server.  If not, then
you want to make sure the server is running first.

> The messages
>  >>> debug1: Allocating pty.
>  >>> debug1: session_pty_req: session 0 alloc /dev/tty2
>  >>> chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
>  >>> debug1: do_cleanup
>  >>> debug1: session_pty_cleanup: session 0 release /dev/tty2
> were got running sshd -d in console.

I was suggesting that you run sshd with all the debug flags
(i.e. "-d -d -d") to see if you'd get more useful information
about your problem.

<snip>

> I have no clue. It look like the /dev is virtual fs for chown and real for
> ls. But both are from cygwin:
> """
> $ which chown ls
> /usr/bin/chown
> /usr/bin/ls

/dev is a virtual.  See:

<http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices>


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019