Reply
Thread Tools
Posts: 94 | Thanked: 10 times | Joined on Jan 2010
#1
Hi all,

Is there a way to SSH over bluetooth? I just want to try an experiment

Cheers
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#2
i'm not an expert, but if you are using bluetooth DUN - you would get an IP, so yes it should work....
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Posts: 155 | Thanked: 61 times | Joined on Nov 2009
#3
Yes does work. just "ifup -f bnep0" - you may ahve to add a stanza to /etc/network/internfaces - fiddled a lot with mine, but it works very well - even with windows!!!
 
Posts: 5 | Thanked: 0 times | Joined on Feb 2010 @ London
#4
ifup requires you to have write access on /var/run/ifstate which requires you to run this as root. Gainroot still doesn't allow it. Having ssh'd to the device as root, chmod'd ifstate and then run ifup using gainroot, no IP seems to be allocated. Surely there must be some better way of running this than as root or via chmoding the ifstate file?

Is it right that /etc/network/interfaces needs adding

Code:
auto bnep0
iface bnup0 inet static
   address 192.168.3.15
   netmask 255.255.255.0
   gateway 192.168.3.1
or similar? I tried that and it still doesn't work.
 
Banned | Posts: 388 | Thanked: 57 times | Joined on Mar 2010
#5
Is there any progress for the original question?

I would like to be able to ssh N900 via bluetooth network. I could send/receive files between the device and my F12 fine however ssh'ing doesn't seem to work. (I used PC-Connectivity package to configure IP settings for the bluetooth network.)

It would be great if someone shed light on this issue.
 
Posts: 521 | Thanked: 296 times | Joined on Sep 2009
#6
Any progress on this?

I found:
http://talk.maemo.org/showthread.php?t=48992

but this required the USB cable to be connected.
 
Posts: 4 | Thanked: 6 times | Joined on Dec 2010 @ Cologne
#7
Here is how I manage to establish a network connection
between N900 and my MacBookPro over Bluetooth PAN.

On N900: Edit /etc/bluetooth/main.conf and remove 'network' from the
configuration option 'DisablePlugins'. Reboot device.
This enables Bluetooth PAN.

Now pair your PC with your N900. On OSX: Go to network
preferences and add interface 'Bluetooth PAN'. Assign an IP
address to this interface, like 10.10.0.2 (Do not use your
LAN subnet like 192.. or 172.. to avoid routing issues).

Now grab your N900 and assign a IP address to the bluetooth
interface:

ifconfig bnep0 up 10.10.0.2

Now you should be able to ping and ssh 10.10.0.2 from your PC.
For ssh: be sure to install OpenSSH server on your device.

Have fun,

euer datenpeter!
 

The Following 4 Users Say Thank You to sebhack For This Useful Post:
Posts: 4 | Thanked: 4 times | Joined on Dec 2009
#8
Very good. Now all I need is Bluetooth on my PC.
 

The Following User Says Thank You to ampaze For This Useful Post:
Posts: 4 | Thanked: 6 times | Joined on Dec 2010 @ Cologne
#9
Use the dbus-scripts daemon if you do not want to
assign the IP address manually via Xterminal everytime
a connection has been established.

Here is how:

# wget http://repository.maemo.org/extras-d...mo-5_armel.deb
# dpkg -i dbus-scripts_1.0+maemo-5_armel.deb

Create /usr/bin/bt.sh, contents:

Code:
#!/bin/sh
sleep 3
ifconfig bnep0 up 10.10.0.2
# chmod +x /usr/bin/bt.sh

Create /etc/dbus-scripts.d/dbus-scripts, contents:

Code:
/usr/bin/bt.sh * * org.bluez.Device PropertyChanged Connected
killall dbus-scripts
/etc/init.d/dbus-scripts start
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#10
Originally Posted by sebhack View Post

Code:
/usr/bin/bt.sh * * org.bluez.Device PropertyChanged Connected
Doesn't that run that script also when just some other than network device is connected by Bluetooth?
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:11.