| irony kike Uri ( @ 2007-10-27 03:04:00 |
| Entry tags: | linux, maemo |
ssh via USB for maemo devices
How to create an ssh-session between your linux PC and your maemo device.
1. Switch Nokia to the host-mode:
$ cat /sys/devices/platform/tahvo-usb/otg_mode
If you're in the host-mode, echo is:
peripheral
2. Load g_ether module at Nokia:
$ sudo gainroot
# insmod /mnt/initfs/lib/modules/`uname -r`/g_ether.ko
3. Connect devices. Now your PC treats Nokia as connected via ethernet card. The only you need is to configure network.
4. Set IP for usb0 interface at Nokia, i.g.:
# ifconfig usb0 10.1.0.2 netmask 255.255.255.0
5. Set IP (from the same subnet) for usb0 interface at your computer, i.g.:
# ifconfig usb0 10.1.0.1 netmask 255.255.255.0
6. Enjoy:
$ ping 10.1.0.2
$ ssh root@10.1.0.2
Default maemo root password is rootme.