Fixing the dropbear SSHd

Stefan Sperling stsp at stsp.name
Tue Dec 18 11:43:37 CET 2007


On Tue, Dec 18, 2007 at 01:05:14AM +0000, Ewan Meadows wrote:
> I've managed to get the dropbear sshd working again and just finishing
> off the final touches before I commit that changes.  It involved
> increasing the amount of legacy PTY's available to 16 (3 seemed a
> little small) and symlinking the /dev/ttyp devices to /var/run and
> using mknod to create them on boot.  I'm having a little trouble
> (probably due to the weekends excesses) getting a bit of code sorted
> for vendors/Nintendo/DLDI/rc, anyone fancy helping?

No time right now, but I'd check John's shell scripting guide
in the wiki, you might find a few hints on building loops in there...

> mknod /var/run/ttyp0 c 3 0
> mknod /var/run/ttyp1 c 3 1
> mknod /var/run/ttyp2 c 3 2
> mknod /var/run/ttyp3 c 3 3
> mknod /var/run/ttyp4 c 3 4
> mknod /var/run/ttyp5 c 3 5
> mknod /var/run/ttyp6 c 3 6
> mknod /var/run/ttyp7 c 3 7
> mknod /var/run/ttyp8 c 3 8
> mknod /var/run/ttyp9 c 3 9
> mknod /var/run/ttypa c 3 10
> mknod /var/run/ttypb c 3 11
> mknod /var/run/ttypc c 3 12
> mknod /var/run/ttypd c 3 13
> mknod /var/run/ttype c 3 14
> mknod /var/run/ttypf c 3 15
> 
> There must be a more elegant way of doing this but my brain is unable
> to help me at the moment, some kind of for loop or something.  As soon
> as I get this sorted I'll get the changes commited and we can finally
> have a secure remote shell.

You can also commit right now and fix that up later.
It's just a cosmetic issue.

-- 
stefan
http://stsp.name                                         PGP Key: 0xF59D25F0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20071218/be55c39a/attachment.pgp 


More information about the dslinux-devel mailing list