PDA

View Full Version : SSH-tunnel on the Squeezebox Controller?



knutm
2008-04-05, 10:23
I know the ability to use headphone is under work. What I'm then interested to know is whether its possible to make an outward ssh-tunnel on the controller. If that is possible you could bring the controller to whatever place that has WiFi-coverage and make a ssh-tunnel home to the SqueezeCenter. That would make it behave like a hardware version of the Softsqueeze!

So.. does the Controller have a ssh-client? Can you create ssh-tunnels with it? If it does, we just have to wait for the headphone-plug to work, and hope the internal player is able to hook up to SqueezeCenter through the ssh-tunnel.


I have ordered a player and looking forward to play with it!

km

bhaagensen
2008-04-05, 11:25
So.. does the Controller have a ssh-client? Can you create ssh-tunnels with it? If it does, we just have to wait for the headphone-plug to work, and hope the internal player is able to hook up to SqueezeCenter through the ssh-tunnel.


afaik not atm. But it has an ssh-server (dropbear). A wild guess is that it's technically straightforward, for someone in the know, to compile dropbear with client support and add some kind of ui for configuring.

knutm
2008-04-05, 16:20
afaik not atm. But it has an ssh-server (dropbear). A wild guess is that it's technically straightforward, for someone in the know, to compile dropbear with client support and add some kind of ui for configuring.

Ok, I took a look at the source (http://svn.slimdevices.com/repos/jive/trunk/squeezeos/src/system/dropbear-0.48.1/), and it is as you say using dropbear. As far as I can see, the makefile builds dropbear with the client as well. It is called "dbclient" and is according to the man-page (http://olympus.het.brown.edu/cgi-bin/man/man2html?1+dbclient) able to set up tunnels!

Could someone check that the SB Controller has the dbclient command?

km

peter
2008-04-06, 04:38
knutm wrote:
> bhaagensen;287851 Wrote:
>
>> afaik not atm. But it has an ssh-server (dropbear). A wild guess is that
>> it's technically straightforward, for someone in the know, to compile
>> dropbear with client support and add some kind of ui for configuring.
>>
>
> Ok, I took a look at 'the source'
> (http://svn.slimdevices.com/repos/jive/trunk/squeezeos/src/system/dropbear-0.48.1/),
> and it is as you say using dropbear. As far as I can see, the makefile
> builds dropbear with the client as well. It is called "dbclient" and is
> according to the 'man-page'
> (http://olympus.het.brown.edu/cgi-bin/man/man2html?1+dbclient) able to
> set up tunnels!
>
> Could someone check that the SB Controller has the dbclient command?
>

# cd /
# find|grep -i dbclient
#

Nope, doesn't seem like it.

Regards,
Peter

knutm
2008-04-06, 06:25
knutm wrote:[color=blue]
# cd /
# find|grep -i dbclient
#

Nope, doesn't seem like it.

Regards,
Peter

Yes, I see it now. The build script doesn't build the dbclient by default, for that you must enter "dbclient" along with "dropbear" and "scp" on line 165 in this Makefile (http://svn.slimdevices.com/repos/jive/trunk/squeezeos/src/system/Makefile).

Well, a custom build shouldn't be that difficult. Or convince the community to build it by default :)

bhaagensen
2008-04-06, 09:07
Well, a custom build shouldn't be that difficult. Or convince the community to build it by default :)


Anyway one would also need some kind of configuration system. The shell is not accessible through the ui on the controller itself. Whether the whole thing would be worth it would depend on the sort of battery life one ends up with when streaming. Streaming to my mobile phone over wlan is, albeit very cool, borderline useless due to the very limited battery-life i get when doing it.

knutm
2008-04-06, 12:11
Anyway one would also need some kind of configuration system. The shell is not accessible through the ui on the controller itself. Whether the whole thing would be worth it would depend on the sort of battery life one ends up with when streaming. Streaming to my mobile phone over wlan is, albeit very cool, borderline useless due to the very limited battery-life i get when doing it.

I've tried streaming with my mobile phone as well, and without constant charging it drained in a few hours :) But I guess the Controller can be charged with USB?

The actual streaming could also be done from another device like softsqueeze/softslave/mp3-stream on a computer or embedded device and only use the Controller as a remote.

I don't think a UI for creating and destroying a ssh-tunnel shouldn't be too hard to make.


km

bhaagensen
2008-04-06, 12:38
But I guess the Controller can be charged with USB?


(Again) not presently. But the charging voltage is 5V, so I guess it is just a matter of getting hold of a suitable cable.

schiegl
2008-04-06, 14:51
Yes, I see it now. The build script doesn't build the dbclient by default, for that you must enter "dbclient" along with "dropbear" and "scp" on line 165 in this Makefile (http://svn.slimdevices.com/repos/jive/trunk/squeezeos/src/system/Makefile).

Well, a custom build shouldn't be that difficult. Or convince the community to build it by default :)

okay, building and running dbclient was no problem at all. From a Geek-POV it's cute ssh'ing to and from the SBC and building tunnels :-)

kind regards,
Markus

knutm
2008-04-07, 12:04
okay, building and running dbclient was no problem at all. From a Geek-POV it's cute ssh'ing to and from the SBC and building tunnels :-)

kind regards,
Markus

Cool! :) Can you get the controller to connect to the SqueezeCenter through the tunnel as well?



km
..still waiting for my unit..

schiegl
2008-04-07, 12:27
Cool! :) Can you get the controller to connect to the SqueezeCenter through the tunnel as well?



km
..still waiting for my unit..

good question...unfortunately i'm away from my SBC for the next days - so you're in good company :-)
I'll check it out the next weekend if nobody else does it.

kind regards,
Markus