* [gentoo-embedded] dropbear and telnetd problem
@ 2006-03-04 23:19 Jakub Ladman
2006-03-05 0:00 ` Kumba
0 siblings, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-04 23:19 UTC (permalink / raw
To: gentoo-embedded
I want to use dropbear as a ssh server
I have got it via emerge, generated keys folowing code
in /etc/init.d/dropbear, changed passwd in baselaout-lite environment, ran
dropbear, but when i tryed to connect it hangs after password entering
(password is ok, error is reported if is not)
No prompt, no shell.
What have i forgotten?
If i am trying to run telnetd (busybox link) i get segfault (other busybox
applets are working properly)
What to do with?
Thanks
Jakub Ladman
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-04 23:19 [gentoo-embedded] dropbear and telnetd problem Jakub Ladman
@ 2006-03-05 0:00 ` Kumba
2006-03-05 0:55 ` Ned Ludd
2006-03-05 1:04 ` Jakub Ladman
0 siblings, 2 replies; 15+ messages in thread
From: Kumba @ 2006-03-05 0:00 UTC (permalink / raw
To: gentoo-embedded
Jakub Ladman wrote:
> I want to use dropbear as a ssh server
> I have got it via emerge, generated keys folowing code
> in /etc/init.d/dropbear, changed passwd in baselaout-lite environment, ran
> dropbear, but when i tryed to connect it hangs after password entering
> (password is ok, error is reported if is not)
> No prompt, no shell.
> What have i forgotten?
>
Make sure you have a valid /etc/shells defined, and include /bin/sh and
/bin/ash. That one hung me up for a while. Enabling dropbear via debug
foreground mode may also reveal where else it fails if shells doesn't fix your
issue.
--Kumba
--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 0:00 ` Kumba
@ 2006-03-05 0:55 ` Ned Ludd
2006-03-05 1:19 ` Jakub Ladman
2006-03-05 1:04 ` Jakub Ladman
1 sibling, 1 reply; 15+ messages in thread
From: Ned Ludd @ 2006-03-05 0:55 UTC (permalink / raw
To: gentoo-embedded
On Sat, 2006-03-04 at 19:00 -0500, Kumba wrote:
> Jakub Ladman wrote:
> > I want to use dropbear as a ssh server
> > I have got it via emerge, generated keys folowing code
> > in /etc/init.d/dropbear, changed passwd in baselaout-lite environment, ran
> > dropbear, but when i tryed to connect it hangs after password entering
> > (password is ok, error is reported if is not)
> > No prompt, no shell.
> > What have i forgotten?
> >
>
> Make sure you have a valid /etc/shells defined, and include /bin/sh and
> /bin/ash. That one hung me up for a while. Enabling dropbear via debug
> foreground mode may also reveal where else it fails if shells doesn't fix your
> issue.
It can also be pretty bitchy about missing /dev/pts mounts
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 0:00 ` Kumba
2006-03-05 0:55 ` Ned Ludd
@ 2006-03-05 1:04 ` Jakub Ladman
2006-03-05 1:12 ` Kumba
1 sibling, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-05 1:04 UTC (permalink / raw
To: gentoo-embedded
Thank you for answer.
> Make sure you have a valid /etc/shells defined, and include /bin/sh and
The file was there, but no /bin/sh inside. But no difference if i type it in.
> /bin/ash. That one hung me up for a while. Enabling dropbear via debug
How to enable it? Emerging it with debug use flag again?
> foreground mode may also reveal where else it fails if shells doesn't fix
> your issue.
Jakub Ladman
>
>
> --Kumba
>
> --
> Gentoo/MIPS Team Lead
> Gentoo Foundation Board of Trustees
>
> "Such is oft the course of deeds that move the wheels of the world: small
> hands do them because they must, while the eyes of the great are
> elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 1:04 ` Jakub Ladman
@ 2006-03-05 1:12 ` Kumba
2006-03-05 1:16 ` Jakub Ladman
0 siblings, 1 reply; 15+ messages in thread
From: Kumba @ 2006-03-05 1:12 UTC (permalink / raw
To: gentoo-embedded
Jakub Ladman wrote:
> Thank you for answer.
>> Make sure you have a valid /etc/shells defined, and include /bin/sh and
>
> The file was there, but no /bin/sh inside. But no difference if i type it in.
>
>> /bin/ash. That one hung me up for a while. Enabling dropbear via debug
>
> How to enable it? Emerging it with debug use flag again?
>
>> foreground mode may also reveal where else it fails if shells doesn't fix
>> your issue.
>
> Jakub Ladman
It's a start up flag. Try passing --help to get the full list of dropbear
command-line options.
--Kumba
--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 1:12 ` Kumba
@ 2006-03-05 1:16 ` Jakub Ladman
2006-03-05 1:44 ` Kumba
0 siblings, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-05 1:16 UTC (permalink / raw
To: gentoo-embedded
On Sunday 05 of March 2006 02:12, Kumba wrote:
> Jakub Ladman wrote:
> > Thank you for answer.
> >
> >> Make sure you have a valid /etc/shells defined, and include /bin/sh and
> >
> > The file was there, but no /bin/sh inside. But no difference if i type it
> > in.
> >
> >> /bin/ash. That one hung me up for a while. Enabling dropbear via debug
> >
> > How to enable it? Emerging it with debug use flag again?
> >
> >> foreground mode may also reveal where else it fails if shells doesn't
> >> fix your issue.
> >
> > Jakub Ladman
>
> It's a start up flag. Try passing --help to get the full list of dropbear
> command-line options.
dropbear -F
Its output is absolutely silent :-(
Jakub
>
>
> --Kumba
>
> --
> Gentoo/MIPS Team Lead
> Gentoo Foundation Board of Trustees
>
> "Such is oft the course of deeds that move the wheels of the world: small
> hands do them because they must, while the eyes of the great are
> elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 0:55 ` Ned Ludd
@ 2006-03-05 1:19 ` Jakub Ladman
0 siblings, 0 replies; 15+ messages in thread
From: Jakub Ladman @ 2006-03-05 1:19 UTC (permalink / raw
To: gentoo-embedded
>
> It can also be pretty bitchy about missing /dev/pts mounts
The device node is there, but i do not know what to inspect with.
Jakub Ladman
>
> --
> Ned Ludd <solar@gentoo.org>
> Gentoo Linux
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 1:16 ` Jakub Ladman
@ 2006-03-05 1:44 ` Kumba
2006-03-05 1:54 ` Jakub Ladman
0 siblings, 1 reply; 15+ messages in thread
From: Kumba @ 2006-03-05 1:44 UTC (permalink / raw
To: gentoo-embedded
Jakub Ladman wrote:
>
> dropbear -F
> Its output is absolutely silent :-(
Close, but you missed one more flag. Remember, not only are you looking to
launch into the foreground, but you want it to log all its info to the console.
--Kumba
--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 1:44 ` Kumba
@ 2006-03-05 1:54 ` Jakub Ladman
2006-03-05 2:33 ` Kumba
0 siblings, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-05 1:54 UTC (permalink / raw
To: gentoo-embedded
/ $ dropbear -F -E
[16] Jan 01 00:02:03 Not forking
[17] Jan 01 00:02:26 Child connection from 10.16.1.130:45326
[17] Jan 01 00:02:28 Warning: Reading the random source seems to have blocked.
If you experience problems, you probably need to find a better entropy source.
[17] Jan 01 00:02:45 password auth succeeded for 'root' from 10.16.1.130:45326
[17] Jan 01 00:02:45 pty_allocate: openpty: No such device
[17] Jan 01 00:02:45 no pty was allocated, couldn't execute
But i don't know what to do. :-(
Jakub
On Sunday 05 of March 2006 02:44, Kumba wrote:
> Jakub Ladman wrote:
> > dropbear -F
> > Its output is absolutely silent :-(
>
> Close, but you missed one more flag. Remember, not only are you looking to
> launch into the foreground, but you want it to log all its info to the
> console.
>
>
> --Kumba
>
> --
> Gentoo/MIPS Team Lead
> Gentoo Foundation Board of Trustees
>
> "Such is oft the course of deeds that move the wheels of the world: small
> hands do them because they must, while the eyes of the great are
> elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 1:54 ` Jakub Ladman
@ 2006-03-05 2:33 ` Kumba
2006-03-05 2:38 ` Scott L. Price
2006-03-05 13:04 ` Jakub Ladman
0 siblings, 2 replies; 15+ messages in thread
From: Kumba @ 2006-03-05 2:33 UTC (permalink / raw
To: gentoo-embedded
Jakub Ladman wrote:
> / $ dropbear -F -E
> [16] Jan 01 00:02:03 Not forking
> [17] Jan 01 00:02:26 Child connection from 10.16.1.130:45326
> [17] Jan 01 00:02:28 Warning: Reading the random source seems to have blocked.
> If you experience problems, you probably need to find a better entropy source.
> [17] Jan 01 00:02:45 password auth succeeded for 'root' from 10.16.1.130:45326
> [17] Jan 01 00:02:45 pty_allocate: openpty: No such device
> [17] Jan 01 00:02:45 no pty was allocated, couldn't execute
>
> But i don't know what to do. :-(
Sounds like the /dev/pts issue solar mentioned a few mails back. Make sure
/dev/pts exists, and you have it mounted as devpts (mount devpts /dev/pts -t
devpts), and see if that fixes it.
--Kumba
--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 2:33 ` Kumba
@ 2006-03-05 2:38 ` Scott L. Price
2006-03-05 13:04 ` Jakub Ladman
1 sibling, 0 replies; 15+ messages in thread
From: Scott L. Price @ 2006-03-05 2:38 UTC (permalink / raw
To: gentoo-embedded
I had that same problem when /dev/ptmx (I think) was missing. It seems
to be some sort of multiplexer for ptys. I am not sure of it's exact
function.
Scott =)
Kumba wrote:
> Jakub Ladman wrote:
>
>> / $ dropbear -F -E
>> [16] Jan 01 00:02:03 Not forking
>> [17] Jan 01 00:02:26 Child connection from 10.16.1.130:45326
>> [17] Jan 01 00:02:28 Warning: Reading the random source seems to have
>> blocked.
>> If you experience problems, you probably need to find a better entropy
>> source.
>> [17] Jan 01 00:02:45 password auth succeeded for 'root' from
>> 10.16.1.130:45326
>> [17] Jan 01 00:02:45 pty_allocate: openpty: No such device
>> [17] Jan 01 00:02:45 no pty was allocated, couldn't execute
>> But i don't know what to do. :-(
>
>
> Sounds like the /dev/pts issue solar mentioned a few mails back. Make
> sure /dev/pts exists, and you have it mounted as devpts (mount devpts
> /dev/pts -t devpts), and see if that fixes it.
>
>
> --Kumba
>
> --
> Gentoo/MIPS Team Lead
> Gentoo Foundation Board of Trustees
>
> "Such is oft the course of deeds that move the wheels of the world:
> small hands do them because they must, while the eyes of the great are
> elsewhere." --Elrond
--
Electrical Engineering/Web Development
Dragonfly Technologies, Inc. http://www.dflytech.com
Hunt Utilities Group LLC http://www.hugllc.com
Hopkins, MN (952) 935-2418
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 2:33 ` Kumba
2006-03-05 2:38 ` Scott L. Price
@ 2006-03-05 13:04 ` Jakub Ladman
2006-03-05 14:15 ` Jakub Ladman
1 sibling, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-05 13:04 UTC (permalink / raw
To: gentoo-embedded
On Sunday 05 of March 2006 03:33, Kumba wrote:
> Jakub Ladman wrote:
> > / $ dropbear -F -E
> > [16] Jan 01 00:02:03 Not forking
> > [17] Jan 01 00:02:26 Child connection from 10.16.1.130:45326
> > [17] Jan 01 00:02:28 Warning: Reading the random source seems to have
> > blocked. If you experience problems, you probably need to find a better
> > entropy source. [17] Jan 01 00:02:45 password auth succeeded for 'root'
> > from 10.16.1.130:45326 [17] Jan 01 00:02:45 pty_allocate: openpty: No
> > such device
> > [17] Jan 01 00:02:45 no pty was allocated, couldn't execute
> >
> > But i don't know what to do. :-(
>
> Sounds like the /dev/pts issue solar mentioned a few mails back. Make sure
> /dev/pts exists, and you have it mounted as devpts (mount devpts /dev/pts
> -t devpts), and see if that fixes it.
Mounting /dev/pts
mount: Mounting none on /dev/pts failed: No such device
:-(
>
>
> --Kumba
>
> --
> Gentoo/MIPS Team Lead
> Gentoo Foundation Board of Trustees
>
> "Such is oft the course of deeds that move the wheels of the world: small
> hands do them because they must, while the eyes of the great are
> elsewhere." --Elrond
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 13:04 ` Jakub Ladman
@ 2006-03-05 14:15 ` Jakub Ladman
2006-03-06 10:25 ` Jakub Ladman
0 siblings, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-05 14:15 UTC (permalink / raw
To: gentoo-embedded
> > Sounds like the /dev/pts issue solar mentioned a few mails back. Make
> > sure /dev/pts exists, and you have it mounted as devpts (mount devpts
> > /dev/pts -t devpts), and see if that fixes it.
>
> Mounting /dev/pts
> mount: Mounting none on /dev/pts failed: No such device
>
I have two host computers, at home and at work. Unfortunately here, at home, i
have forgotten to setup kernel symlinks.
After making it i am trying to recompile everything.
I hope that it may help.
Jakub
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-05 14:15 ` Jakub Ladman
@ 2006-03-06 10:25 ` Jakub Ladman
2006-03-06 13:42 ` Natanael Copa
0 siblings, 1 reply; 15+ messages in thread
From: Jakub Ladman @ 2006-03-06 10:25 UTC (permalink / raw
To: gentoo-embedded
On Sunday 05 of March 2006 15:15, Jakub Ladman wrote:
> > > Sounds like the /dev/pts issue solar mentioned a few mails back. Make
> > > sure /dev/pts exists, and you have it mounted as devpts (mount devpts
> > > /dev/pts -t devpts), and see if that fixes it.
> >
> > Mounting /dev/pts
> > mount: Mounting none on /dev/pts failed: No such device
>
> I have two host computers, at home and at work. Unfortunately here, at
> home, i have forgotten to setup kernel symlinks.
> After making it i am trying to recompile everything.
> I hope that it may help.
No it helps me not. I still see "mount: Mounting none on /dev/pts failed: No
such device" and i am dead, i can't move any step forward.
Do you know, how to make /dev/pts work?
Jakub
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-embedded] dropbear and telnetd problem
2006-03-06 10:25 ` Jakub Ladman
@ 2006-03-06 13:42 ` Natanael Copa
0 siblings, 0 replies; 15+ messages in thread
From: Natanael Copa @ 2006-03-06 13:42 UTC (permalink / raw
To: gentoo-embedded
On man, 2006-03-06 at 11:25 +0100, Jakub Ladman wrote:
> On Sunday 05 of March 2006 15:15, Jakub Ladman wrote:
> > > > Sounds like the /dev/pts issue solar mentioned a few mails back. Make
> > > > sure /dev/pts exists, and you have it mounted as devpts (mount devpts
> > > > /dev/pts -t devpts), and see if that fixes it.
> > >
> > > Mounting /dev/pts
> > > mount: Mounting none on /dev/pts failed: No such device
> >
> > I have two host computers, at home and at work. Unfortunately here, at
> > home, i have forgotten to setup kernel symlinks.
> > After making it i am trying to recompile everything.
> > I hope that it may help.
>
> No it helps me not. I still see "mount: Mounting none on /dev/pts failed: No
> such device" and i am dead, i can't move any step forward.
>
> Do you know, how to make /dev/pts work?
You need Unix98 PTY support in your kernel:
Device Drivers --->
Character devices --->
[*] Unix98 PTY support
Here is a cut from my udev init.d script that mounts the pts.
# create pts file system
[ -d /dev/pts ] || mkdir --mode=755 /dev/pts
[ -c /dev/ptmx ] || mknod --mode=666 /dev/ptmx c 5 2
mount /dev/pts
and the line in fstab:
none /dev/pts devpts defaults 0 0
If you dont want depend on your fstab, replace the above
"mount /dev/pts" with "mount -t devpts none /dev/pts"
--
Natanael Copa
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2006-03-06 13:44 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 23:19 [gentoo-embedded] dropbear and telnetd problem Jakub Ladman
2006-03-05 0:00 ` Kumba
2006-03-05 0:55 ` Ned Ludd
2006-03-05 1:19 ` Jakub Ladman
2006-03-05 1:04 ` Jakub Ladman
2006-03-05 1:12 ` Kumba
2006-03-05 1:16 ` Jakub Ladman
2006-03-05 1:44 ` Kumba
2006-03-05 1:54 ` Jakub Ladman
2006-03-05 2:33 ` Kumba
2006-03-05 2:38 ` Scott L. Price
2006-03-05 13:04 ` Jakub Ladman
2006-03-05 14:15 ` Jakub Ladman
2006-03-06 10:25 ` Jakub Ladman
2006-03-06 13:42 ` Natanael Copa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox