Use this for SSH on the Empeg?

Posted by: SonicSnoop

Use this for SSH on the Empeg? - 15/10/2004 12:50

I was reading an article on Toms Hardware about the Linksys NSLU2 and the guy suggested that this might work on it, and since the guy said the NSLU2 has a StrongARM processor I figured I would ask you linux gurus out here if it would work. I know we got telnet I just prefer SSH
Posted by: cushman

Re: Use this for SSH on the Empeg? - 15/10/2004 13:55

Sure, because we all know that your username/password on the Empeg is super-confidential...

I'd like it for when I send my credit card numbers over to the Empeg...

Why would you want SSH on the Empeg? To increase the CPU usage?
Posted by: SonicSnoop

Re: Use this for SSH on the Empeg? - 15/10/2004 14:10

Well the main reason I prefer SSH is at work I have to disable ftp, but everyonce in a while I do need to move files, if I had ssh I would be able to use the SSH util to transfer files. Yes it uses a lil more cpu but so do just about every other application we throw on it. Im sorry if my previous post upset you in some way i was just wondering if it would work.
Posted by: genixia

Re: Use this for SSH on the Empeg? - 15/10/2004 14:16

For those who use it at work on a network telnet is sniffable. I wouldn't want to upset a coworker and then find out that they've run "rm -rf" on my music partitions. Sure I could rebuild it all, but why go through the pain?

(Note that as I don't have any co-workers at the moment, and I'm not the kind of person to go around deliberately upsetting people, this isn't likely to happen to me, but I'd still like to see ssh on the empeg).
Posted by: cushman

Re: Use this for SSH on the Empeg? - 15/10/2004 14:38

No, no, I was just asking a question.

I don't work in an office so I was not able to see the relevance of putting SSH on the Empeg to transfer files. It just seemed like a waste at the time. So often I see people wishing for features that are not really needed on the Empeg except for the cool factor.

Didn't someone have a telnetd with a login/pw enabled? I seem to remember seeing that. That would stop genxia's vindictive cow-orker from the rm -rf.

Edit: I'm a dummy, forgot about the "sniffable" comment.
Posted by: tfabris

Re: Use this for SSH on the Empeg? - 15/10/2004 15:42

Quote:
Well the main reason I prefer SSH is at work I have to disable ftp, but everyonce in a while I do need to move files

Can't you use RZ and SZ from the terminal? I know it works over serial, never tried it with telnet.
Posted by: wfaulk

Re: Use this for SSH on the Empeg? - 15/10/2004 16:00

Telnet interprets some byte sequences as internal commands. I don't know if zmodem can be configured to avoid those sequences or not. Also, scp is much, much easier to deal with.

Honestly, I've always had a lot of trouble doing zmodem over the serial port since there's no flow control enabled.
Posted by: tman

Re: Use this for SSH on the Empeg? - 15/10/2004 16:01

Yeah. The telnetd with a login was me. I'll dig it out again.
Posted by: siberia37

Re: Use this for SSH on the Empeg? - 19/10/2004 11:52

Quote:
For those who use it at work on a network telnet is sniffable. I wouldn't want to upset a coworker and then find out that they've run "rm -rf" on my music partitions. Sure I could rebuild it all, but why go through the pain?



Of course the "rm -rf" trick would only work if they knew how to mount the drive read/write and where your music partition actually was. C'mon man- security through obscurity- it's the way to go! <sic>
Posted by: pgrzelak

Re: Use this for SSH on the Empeg? - 19/10/2004 12:21

Even something non-malicious. It is quite easy with some commands / interfaces (thinking about charcoalgrey's for example) to set the drives read/write and forget it. Then I disconnect the power and find the filesystems are dirty and need and fsck.
Posted by: mlord

Re: Use this for SSH on the Empeg? - 19/10/2004 12:33

That's why Hijack password protection was implemented!

Mind ya, that is also rather easy to hack..
Posted by: pgrzelak

Re: Use this for SSH on the Empeg? - 19/10/2004 12:35

True and true. I was just showing that it can be very easy to cause damage (well, perhaps just annoyance) without intending to, if the player is left open on a network.
Posted by: tfabris

Re: Use this for SSH on the Empeg? - 19/10/2004 14:32

Quote:
security through obscurity


<Bitt>

I think you meant security through obfuscation.

</Bitt>
Posted by: tonyc

Re: Use this for SSH on the Empeg? - 19/10/2004 14:34

<tonyc>

Er, no. The principle is known much better as security through obscurity in information security vernacular.

</tonyc>

<Google>
Results 1 - 10 of about 27,700 for "security through obscurity"
Results 1 - 10 of about 253 for "security through obfuscation"
</Google>
Posted by: Daria

Re: Use this for SSH on the Empeg? - 19/10/2004 14:36

Right. I've never heard of security through obfuscation. Your Bitt impression sucks, Tony.
Posted by: tfabris

Re: Use this for SSH on the Empeg? - 19/10/2004 15:04

Damn. I'd first seen the term "security through obfuscation" in an IT trade publication ten years ago and never heard a different varaiant during all the intervening time.

I could argue that my way is a more accurate term, but clearly the masses have spoken. Sigh.
Posted by: tonyc

Re: Use this for SSH on the Empeg? - 19/10/2004 15:22

Quote:
I could argue that my way is a more accurate term


<Webster>

Main Entry: ob·fus·cate
Pronunciation: 'äb-f&-"skAt; äb-'f&s-"kAt, &b-
Function: transitive verb
Inflected Form(s): -cat·ed; -cat·ing
Etymology: Late Latin obfuscatus, past participle of obfuscare, from Latin ob- in the way + fuscus dark brown -- more at OB-, DUSK
1 a : DARKEN b : to make obscure

</Webster>
Posted by: cushman

Re: Use this for SSH on the Empeg? - 19/10/2004 15:26

"security through obscurity" : 27,700
"security through obfuscation": 253

Edit: Jeebus, the links worked fine in preview. WTF?
Edit: It didn't like the double-quotes-as-%22 inside the [url] tag; it changed them to doublequotes too early somewhere. I changed them to "%2522". -wfaulk
Posted by: tonyc

Re: Use this for SSH on the Empeg? - 19/10/2004 15:27

Dude, you need to use your scrollbar. ^^^

Posted by: cushman

Re: Use this for SSH on the Empeg? - 19/10/2004 15:28

I don't believe in scrollbars. I'm a bottom-post-only-reader
Posted by: Daria

Re: Use this for SSH on the Empeg? - 19/10/2004 15:54

Quote:

I could argue that my way is a more accurate term, but clearly the masses have spoken. Sigh.


You could, but Bitt doesn't argue that the generally accepted way is wrong; he tells you you failed to use the generally accepted way. You're not being Bitt, or if you are, you're an inferior substitute
Posted by: Daria

Re: Use this for SSH on the Empeg? - 19/10/2004 15:55

Quote:
I don't believe in scrollbars. I'm a bottom-post-only-reader


[in the tone that you'd say mouth breather]Topquoter[/tone]!
Posted by: wfaulk

Re: Use this for SSH on the Empeg? - 19/10/2004 16:56

Almost, but not quite, entirely unlike tea^H^H^HBitt.
Posted by: pgrzelak

Re: Use this for SSH on the Empeg? - 19/10/2004 19:17

: ) I wonder how many of the younger folk on the board remember that...
Posted by: tman

Re: Use this for SSH on the Empeg? - 19/10/2004 21:21

Who's going to install the GPP feature into the empeg then?
Posted by: frog51

Re: Use this for SSH on the Empeg? - 20/10/2004 06:05

802.11 connectivity module -

"Share and Enjoy"
Posted by: alex25

Re: Use this for SSH on the Empeg? - 20/10/2004 19:44

I'm working on getting the debian OpenSSH server to work on a stock empeg kernel right now. It should be ready to download in the next few days.

I already have a running ssh server on my special configured empeg player (running a complete debian sarge distribution) since about two years.
Posted by: SonicSnoop

Re: Use this for SSH on the Empeg? - 20/10/2004 20:34

Thank you very much!
Posted by: andy

Re: Use this for SSH on the Empeg? - 21/10/2004 04:20

Quote:
"security through obscurity" : 27,700
"security through obfuscation": 253



Thank goodness, I never have mastered the word obfuscation. I can't spell it and when ever I try to say it out loud it just comes out wrong
Posted by: tman

Re: Use this for SSH on the Empeg? - 21/10/2004 11:21

How fast does it go? I compiled OpenSSH a while ago and found it be quite sluggish even with the player being idle/paused.
Posted by: alex25

Re: Use this for SSH on the Empeg? - 21/10/2004 11:43

No, it's rather fast. You'll see it. Let you surprise.
Posted by: alex25

Re: Use this for SSH on the Empeg? - 22/10/2004 08:29

In the meantime I'm able to ssh login to a stock empeg player (a slightly modified hijack kernel is needed). I get a shell in a chrooted environment and scp works as expected. But I think what people wants is access to the /drive0 and /drive1 directories of the empeg. This is not possible in this environment!

So here is the big question to the linux gurus. How do I have access to these directories in a chrooted environment? I already asked google and tried the following methods but without success so far:

- mount directories to a directory inside chrooted environment (does not work because drives can only be mounted once in kernel 2.2)

- mount with the --bind option to a directory inside the chrooted environment (does not work because this option needs at least a kernel 2.4)

Any other ideas?
Posted by: mlord

Re: Use this for SSH on the Empeg? - 22/10/2004 12:36

If you want full access to the empeg, then don't use a chroot'd environment.
Posted by: alex25

Re: Use this for SSH on the Empeg? - 22/10/2004 12:40

This was not the aswer I hoped for. :-)
I have to use a chroot'd environment because otherwise it conflicts with other libraries.
Posted by: mlord

Re: Use this for SSH on the Empeg? - 22/10/2004 13:15

#!/bin/sh
export LD_LIBRARY_PATH=/my_ssh_libs/
exec sshd
Posted by: alex25

Re: Use this for SSH on the Empeg? - 22/10/2004 13:28

This is exactly the way I tried it first.
But sshd relies on many different files and folders which I thought are easier to provide in a chroot'd environment and do not conflict with the existing empeg things.
Maybe it would somehow work the way you proposed but I had no success.

Is there really now way to mount, link (e.g mount_union, mount_null) or whatever a directory from outsite the chroot'd environment? (I know the purpose of a chroot'd environment is to jail the user in there)
Posted by: mlord

Re: Use this for SSH on the Empeg? - 22/10/2004 23:34

If you create the /dev/ node inside the chroot cell for the disk partition you want, then you ought to be able to mount it (again) inside there.

Cheers
Posted by: image

Re: Use this for SSH on the Empeg? - 23/10/2004 00:13

is it possible to compile this thing static?
Posted by: alex25

Re: Use this for SSH on the Empeg? - 23/10/2004 04:53

I have a copy of all the dev nodes inside.
I can for example unmount /drive1 (/dev/hdc4) and mount it inside the chroot'd environment. This works as expected.
But as much as I know you can NOT mount a partition twice to different mount points withhin the kernel 2.2. (kernel 2.4 allows this)
Posted by: alex25

Re: Use this for SSH on the Empeg? - 23/10/2004 04:57

I don't know if it is possible to compile it static. But even then it uses additional services like pam.
What I do here is not compile the ssh package but use the precompiled debian packages.
Posted by: mlord

Re: Use this for SSH on the Empeg? - 23/10/2004 12:07

Pam is optional -- should be able to eliminate it with a configure flag or something similar.

Pity that 2.2.xx won't allow multiple mounts -- I hadn't noticed that limitation before, and a brief glance at fs/super.c didn't promise much hope of a simple patch to "fix" that limitation.

So, you're back to LD_LIBRARY_PATH again.

EDIT: or you could try some really wretched hack like changing the regular mount location to a point within the chroot tree, and using a symlink to put it back where everything else expects to find it.

cheers
Posted by: Daria

Re: Use this for SSH on the Empeg? - 23/10/2004 14:08

Mount it once, inside the chrooted environment, and symlink the original mountpoint to it

(actually, that's wretched)
Posted by: alex25

Re: Use this for SSH on the Empeg? - 23/10/2004 14:24

Yes, this way it should work. I'll try it tomorrow.
Thanks for all the help.
Posted by: TheAmigo

Re: Use this for SSH on the Empeg? - 05/04/2005 04:50

Short version: rather than trying to secure the empeg (difficult and taxing on its CPU), put it behind a firewall.

Long version:
I'll be worrying about security when I install my carputer. I plan to use it to let me upload music to the empeg while it's still in the car (soon after parking).

Since I don't trust either WEP or WPA for access to my home network, I hacked my WRT54G to be an IPSec endpoint. Now I can VPN from my laptop to the Linksys (I allow others free Internet access, but my home lan is only visible to IPSec clients). The down side is that the Linksys's CPU is so slow that it can only push ~1.5Mbps through an IPSec tunnel (not enough for streaming video from the TiVo to my laptop). I'll soon build another linux box to be a VPN server (likely openvpn).

Also wanting to keep the empeg secure against wardrivers (as I'll have a PC in the trunk with ethernet to the empeg and WiFi), I'll config the carputer to be a firewall too. Then when in range of my home WiFi, it can VPN in (net-to-net) so I can upload new music.

The empeg shouldn't need any modification so no extra CPU or memory usage to slow it down.
Posted by: mlord

Re: Use this for SSH on the Empeg? - 05/04/2005 10:17

Did you mean to ask a question of some kind?
Posted by: TheAmigo

Re: Use this for SSH on the Empeg? - 06/04/2005 01:52

Nope.

Just throwing in my $0.02.
Posted by: SonicSnoop

Re: Use this for SSH on the Empeg? - 06/04/2005 13:17

The reason I wanted SSH wasnt for security really. It was for being able to copy files since I couldnt use FTP at my last job..
Posted by: SE_Sport_Driver

Re: Use this for SSH on the Empeg? - 06/04/2005 19:52

Happy birthday!
Posted by: SonicSnoop

Re: Use this for SSH on the Empeg? - 06/04/2005 20:57

Thank you..