openpty : no such file or directory error
swenggsri at yahoo.com
Sat Feb 5 06:04:15 WST 2005
Its been a while since I continued work with
dropbear on my uClinux 2.4.24(Arcturus uCdimm -
Motorola M68VZ328) with uClibc compilation.
I now have it working as a daemon. And a SSH client
seems to connect to it(though Diffie Helman exchange
on the 33MHz uCdimm takes about 8-10 mins).
But the password is not authenticated. On turning on
-E option, I found:
 Nov 30 00:09:57 pty_allocate: openpty: No such
file or directory
(invoked in sshpty.c)
My relevant kernel options are:
and the config.h file is:
/* Have openpty() function */
#define HAVE_OPENPTY 1
/* Define to 1 if you have the <pty.h> header file. */
#define HAVE_PTY_H 1
/* Define to 1 if you have the `_getpty' function. */
#define HAVE__GETPTY 1
/* Use /dev/ptmx */
Any suggestions to solve this problem would be most
Thanks in advance,
--- Matt Johnston <matt at ucc.asn.au> wrote:
> On Tue, Dec 28, 2004 at 05:14:10PM -0800, Sriram
> Chadalavada wrote:
> > I have cross-compiled dropbear as a MULTI and
> > program and use a symbolic link dropbear. The DSS
> > key has been put into /etc/dropbear(appropriate
> > location) of the uCdimm filesystem.
> > The application has been compiled to execute under
> > inetd control.
> > My problem is that when I try connecting to the
> > using ssh, I get the message:
> > [root at dhcp001 uClinux-dist]# ssh
> root at 184.108.40.206
> > ssh_exchange_identification: Connection closed by
> > remote host
> Does your system have syslog available? If so, could
> have a look at the logs and see what error message
> is giving?
> If syslog isn't available, the best bet is probably
> compile Dropbear to try and run standalone (not from
> and run it with '-F -E' flags so that logging
> information is
> written to your terminal. (I'm not entirely sure if
> will work with uClibc - you might want to remove the
> "fork()" from svr-main.c).
> If the logging information doesn't give any hints,
> you can
> enable DEBUG_TRACE in debug.h, which will spit out
> verbose debugging information. (Note that this will
> cause problems if you run from inetd).
> Let me know how it goes.
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
More information about the Dropbear