Unoffical empeg BBS

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

Page 1 of 2 1 2 >
Topic Options
#237722 - 15/10/2004 12:50 Use this for SSH on the Empeg?
SonicSnoop
addict

Registered: 29/06/2002
Posts: 531
Loc: Triangle, VA
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
_________________________
-D Modifying and Tweaking is a journey, not a destination................................ MKIIa : 60gig - 040103286 - Blue - v2 + PCATS tuner MKIIa : 20gig - 040103260 - Blue - v3a8 + Mark Lord Special Edition Cherry Dock

Top
#237723 - 15/10/2004 13:55 Re: Use this for SSH on the Empeg? [Re: SonicSnoop]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
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?
_________________________
Mark Cushman

Top
#237724 - 15/10/2004 14:10 Re: Use this for SSH on the Empeg? [Re: cushman]
SonicSnoop
addict

Registered: 29/06/2002
Posts: 531
Loc: Triangle, VA
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.
_________________________
-D Modifying and Tweaking is a journey, not a destination................................ MKIIa : 60gig - 040103286 - Blue - v2 + PCATS tuner MKIIa : 20gig - 040103260 - Blue - v3a8 + Mark Lord Special Edition Cherry Dock

Top
#237725 - 15/10/2004 14:16 Re: Use this for SSH on the Empeg? [Re: cushman]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
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).
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#237726 - 15/10/2004 14:38 Re: Use this for SSH on the Empeg? [Re: SonicSnoop]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
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.


Edited by cushman (15/10/2004 14:39)
_________________________
Mark Cushman

Top
#237727 - 15/10/2004 15:42 Re: Use this for SSH on the Empeg? [Re: SonicSnoop]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
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.
_________________________
Tony Fabris

Top
#237728 - 15/10/2004 16:00 Re: Use this for SSH on the Empeg? [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
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.
_________________________
Bitt Faulk

Top
#237729 - 15/10/2004 16:01 Re: Use this for SSH on the Empeg? [Re: cushman]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Yeah. The telnetd with a login was me. I'll dig it out again.

Top
#237730 - 19/10/2004 11:52 Re: Use this for SSH on the Empeg? [Re: genixia]
siberia37
old hand

Registered: 09/01/2002
Posts: 702
Loc: Tacoma,WA
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>


Edited by siberia37 (19/10/2004 11:52)

Top
#237731 - 19/10/2004 12:21 Re: Use this for SSH on the Empeg? [Re: siberia37]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
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.
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#237732 - 19/10/2004 12:33 Re: Use this for SSH on the Empeg? [Re: pgrzelak]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
That's why Hijack password protection was implemented!

Mind ya, that is also rather easy to hack..

Top
#237733 - 19/10/2004 12:35 Re: Use this for SSH on the Empeg? [Re: mlord]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
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.
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#237734 - 19/10/2004 14:32 Re: Use this for SSH on the Empeg? [Re: siberia37]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
Quote:
security through obscurity


<Bitt>

I think you meant security through obfuscation.

</Bitt>
_________________________
Tony Fabris

Top
#237735 - 19/10/2004 14:34 Re: Use this for SSH on the Empeg? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
<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>
_________________________
- Tony C
my empeg stuff

Top
#237736 - 19/10/2004 14:36 Re: Use this for SSH on the Empeg? [Re: tonyc]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Right. I've never heard of security through obfuscation. Your Bitt impression sucks, Tony.

Top
#237737 - 19/10/2004 15:04 Re: Use this for SSH on the Empeg? [Re: Daria]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
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.
_________________________
Tony Fabris

Top
#237738 - 19/10/2004 15:22 Re: Use this for SSH on the Empeg? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
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>
_________________________
- Tony C
my empeg stuff

Top
#237739 - 19/10/2004 15:26 Re: Use this for SSH on the Empeg? [Re: tfabris]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
"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


Edited by wfaulk (19/10/2004 15:50)

Top
#237740 - 19/10/2004 15:27 Re: Use this for SSH on the Empeg? [Re: cushman]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Dude, you need to use your scrollbar. ^^^

_________________________
- Tony C
my empeg stuff

Top
#237741 - 19/10/2004 15:28 Re: Use this for SSH on the Empeg? [Re: tonyc]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
I don't believe in scrollbars. I'm a bottom-post-only-reader
_________________________
Mark Cushman

Top
#237742 - 19/10/2004 15:54 Re: Use this for SSH on the Empeg? [Re: tfabris]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
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

Top
#237743 - 19/10/2004 15:55 Re: Use this for SSH on the Empeg? [Re: cushman]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
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]!

Top
#237744 - 19/10/2004 16:56 Re: Use this for SSH on the Empeg? [Re: Daria]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Almost, but not quite, entirely unlike tea^H^H^HBitt.
_________________________
Bitt Faulk

Top
#237745 - 19/10/2004 19:17 Re: Use this for SSH on the Empeg? [Re: wfaulk]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
: ) I wonder how many of the younger folk on the board remember that...
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#237746 - 19/10/2004 21:21 Re: Use this for SSH on the Empeg? [Re: wfaulk]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Who's going to install the GPP feature into the empeg then?

Top
#237747 - 20/10/2004 06:05 Re: Use this for SSH on the Empeg? [Re: tman]
frog51
pooh-bah

Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
802.11 connectivity module -

"Share and Enjoy"
_________________________
Rory
MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi
MkII, 240Gb in Mark Lord dock
MkII, 80Gb SSD in dock

Top
#237748 - 20/10/2004 19:44 Re: Use this for SSH on the Empeg? [Re: SonicSnoop]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
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.

Top
#237749 - 20/10/2004 20:34 Re: Use this for SSH on the Empeg? [Re: alex25]
SonicSnoop
addict

Registered: 29/06/2002
Posts: 531
Loc: Triangle, VA
Thank you very much!
_________________________
-D Modifying and Tweaking is a journey, not a destination................................ MKIIa : 60gig - 040103286 - Blue - v2 + PCATS tuner MKIIa : 20gig - 040103260 - Blue - v3a8 + Mark Lord Special Edition Cherry Dock

Top
#237750 - 21/10/2004 04:20 Re: Use this for SSH on the Empeg? [Re: cushman]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
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
_________________________
Remind me to change my signature to something more interesting someday

Top
#237751 - 21/10/2004 11:21 Re: Use this for SSH on the Empeg? [Re: alex25]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
How fast does it go? I compiled OpenSSH a while ago and found it be quite sluggish even with the player being idle/paused.

Top
#237752 - 21/10/2004 11:43 Re: Use this for SSH on the Empeg? [Re: tman]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
No, it's rather fast. You'll see it. Let you surprise.

Top
#237753 - 22/10/2004 08:29 Re: Use this for SSH on the Empeg? [Re: alex25]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
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?

Top
#237754 - 22/10/2004 12:36 Re: Use this for SSH on the Empeg? [Re: alex25]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
If you want full access to the empeg, then don't use a chroot'd environment.

Top
#237755 - 22/10/2004 12:40 Re: Use this for SSH on the Empeg? [Re: mlord]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
This was not the aswer I hoped for. :-)
I have to use a chroot'd environment because otherwise it conflicts with other libraries.

Top
#237756 - 22/10/2004 13:15 Re: Use this for SSH on the Empeg? [Re: alex25]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
#!/bin/sh
export LD_LIBRARY_PATH=/my_ssh_libs/
exec sshd

Top
#237757 - 22/10/2004 13:28 Re: Use this for SSH on the Empeg? [Re: mlord]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
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)

Top
#237758 - 22/10/2004 23:34 Re: Use this for SSH on the Empeg? [Re: alex25]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
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

Top
#237759 - 23/10/2004 00:13 Re: Use this for SSH on the Empeg? [Re: alex25]
image
old hand

Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
is it possible to compile this thing static?

Top
#237760 - 23/10/2004 04:53 Re: Use this for SSH on the Empeg? [Re: mlord]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
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)

Top
#237761 - 23/10/2004 04:57 Re: Use this for SSH on the Empeg? [Re: image]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
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.

Top
#237762 - 23/10/2004 12:07 Re: Use this for SSH on the Empeg? [Re: alex25]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
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


Edited by mlord (23/10/2004 12:08)

Top
#237763 - 23/10/2004 14:08 Re: Use this for SSH on the Empeg? [Re: alex25]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Mount it once, inside the chrooted environment, and symlink the original mountpoint to it

(actually, that's wretched)

Top
#237764 - 23/10/2004 14:24 Re: Use this for SSH on the Empeg? [Re: Daria]
alex25
member

Registered: 30/06/1999
Posts: 179
Loc: Switzerland
Yes, this way it should work. I'll try it tomorrow.
Thanks for all the help.

Top
#237765 - 05/04/2005 04:50 Re: Use this for SSH on the Empeg? [Re: SonicSnoop]
TheAmigo
enthusiast

Registered: 14/09/2000
Posts: 363
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.
_________________________
--The Amigo

Top
#237766 - 05/04/2005 10:17 Re: Use this for SSH on the Empeg? [Re: TheAmigo]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
Did you mean to ask a question of some kind?

Top
#237767 - 06/04/2005 01:52 Re: Use this for SSH on the Empeg? [Re: mlord]
TheAmigo
enthusiast

Registered: 14/09/2000
Posts: 363
Nope.

Just throwing in my $0.02.
_________________________
--The Amigo

Top
#237768 - 06/04/2005 13:17 Re: Use this for SSH on the Empeg? [Re: TheAmigo]
SonicSnoop
addict

Registered: 29/06/2002
Posts: 531
Loc: Triangle, VA
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..
_________________________
-D Modifying and Tweaking is a journey, not a destination................................ MKIIa : 60gig - 040103286 - Blue - v2 + PCATS tuner MKIIa : 20gig - 040103260 - Blue - v3a8 + Mark Lord Special Edition Cherry Dock

Top
#237769 - 06/04/2005 19:52 Re: Use this for SSH on the Empeg? [Re: SonicSnoop]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Happy birthday!
_________________________
Brad B.

Top
#237770 - 06/04/2005 20:57 Re: Use this for SSH on the Empeg? [Re: SE_Sport_Driver]
SonicSnoop
addict

Registered: 29/06/2002
Posts: 531
Loc: Triangle, VA
Thank you..
_________________________
-D Modifying and Tweaking is a journey, not a destination................................ MKIIa : 60gig - 040103286 - Blue - v2 + PCATS tuner MKIIa : 20gig - 040103260 - Blue - v3a8 + Mark Lord Special Edition Cherry Dock

Top
Page 1 of 2 1 2 >