Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#119478 - 05/10/2002 04:39 Problems running sshd on empeg
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
I installed the full blown debian distribution as describen on this bbs and on the riocar website.
After this I upgraded online to the lastest debian distribution (You need a lot of time and a lot of swap space to do this)

No I try to run the sshd from the debian distribution to be able to connect from other hosts. But at the moment I'm not able to make a ssh connection from another host to my empeg. The connection will be closed automaticaly after a few milliseconds, and before the ssh connection could be established.


If I try to establish a SSH connection to the empeg I get the following log (linux box):

ssh 192.168.1.10 -v
...
debug1: Connection established.
...
debug1: Waiting for server public key.
Connection closed by 192.168.1.10
debug1: Calling cleanup 0x8064ea0(0x0)


On the empeg, the sshd shows the following logs in debug mode:

sh-2.05a# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_3.4p1 Debian 1:3.4p1-1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 192.168.1.38 port 32856
debug1: Client protocol version 1.5; client software version OpenSSH_2.9p1
debug1: match: OpenSSH_2.9p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*
debug1: Local version string SSH-1.99-OpenSSH_3.4p1 Debian 1:3.4p1-1
monitor_socketpair: socketpair
debug1: Calling cleanup 0x2e720(0x0)

It seens that there is a problem with the socketpair implementation. I don't kown much about what a socketpair implementation is, but it seems that it's not available in the arm kernel. Do I have to build an own kernel? If so, which additional config settings do I need. What else should I try? The hosts.allow and hosts.deny files are correct.

Would be great if someone has more expirience with this.

The other way round ssh from the empeg to another host works fine, but has nothing to do with the sshd.

The goal of this installation is to set up my backup empeg player as a webserver (apache, maybe with php support) on my private dsl account, accessible from around the world.

Top
#119479 - 05/10/2002 04:58 Re: Problems running sshd on empeg [Re: alex25]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4172
Loc: Cambridge, England
I don't kown much about what a socketpair implementation is, but it seems that it's not available in the arm kernel.

Empeg kernels are build without "System V IPC" to keep the size down. I expect this is what's causing the lack of socketpair(). You could try recompiling sshd, persuading it to use pipe() instead (which is supported); otherwise, you need to rebuild and reflash the kernel. You'll also need System V IPC if you want to use Samba.

Peter

Top
#119480 - 09/10/2002 12:40 Re: Problems running sshd on empeg [Re: peter]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
In the meantime sshd is running on my empeg. Finally I could solve the problem with other config options.
Compiling a kernel with System V IPC and compiling sshd with USE_PIPE doesn't solve the problem.
So fact seems to be: socketpair does not work on the empeg

Setting up apache now...

Top
#119481 - 09/10/2002 13:29 Re: Problems running sshd on empeg [Re: alex25]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Wouldn't thttpd be more appropriate? Or the http server in hijack?
_________________________
Bitt Faulk

Top
#119482 - 09/10/2002 13:32 Re: Problems running sshd on empeg [Re: alex25]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
What you were probably missing are the unix domain sockets. My guess is that socket_pair wraps around those instead of the SysV IPC methods.

Why aren't you looking at somewhat smaller Web servers. Apache is pretty big and does a lot of in memory caching which is nice for a high-end server, but not really necessary for a server on a 200MHz cpu with a 10Base-T network connection. Maybe something like boa would be more useful, or if you don't need CGI scripts, just use the khttpd that hijack provides.
_________________________
40GB - serial #40104051 gpsapp

Top
#119483 - 09/10/2002 13:37 Re: Problems running sshd on empeg [Re: wfaulk]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
I don't think that you can set permissions to directories with the hijack webserver. I don't want to share my music partition to the hole world. :-)
Let's see how fast apache (with php support) is on the empeg ...

Top
#119484 - 10/10/2002 11:20 Re: Problems running sshd on empeg [Re: jaharkes]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
Thanks for your hint.
I recompiled the kernel with the config_unix option and now the sshd is working with the original configuration. (Including socketpair call)

Top
#119485 - 11/10/2002 14:55 Re: Problems running sshd on empeg [Re: alex25]
paulj
stranger

Registered: 10/09/2002
Posts: 48
Loc: Austin, TX
In reply to:


I installed the full blown debian distribution as describen on this bbs and on the riocar website.
After this I upgraded online to the lastest debian distribution (You need a lot of time and a lot of swap space to do this)




Where is this described? link?

Top
#119486 - 11/10/2002 15:02 Re: Problems running sshd on empeg [Re: paulj]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI

Top
#119487 - 12/10/2002 02:07 apache with php support up and running on my empeg [Re: alex25]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
Hi
I just wanted to say that my empeg is running an apache server now. At the moment it contains just a dummy PHP page.
You can reach my empeg under http://empeg.homelinux.com. But don't expect to have access to my music archiv. Later l will add a protected virtual directory for this, but only for my personal use. :-)

About performance: In my opinion it's pretty fast. The request is served within a few milliseconds. Maybe the first request is a bit slower, depending on the state of the disc (hd may have to spin up before answering the request)
Your welcome to try it out: http://empeg.homelinux.com. But please don't stress it to much.

Top
#119488 - 12/10/2002 13:20 Re: apache with php support up and running on my empeg [Re: alex25]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Killer. So how about a run down of how you did it, and a posting of the modified files?
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top