maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   HOWTO access your N900 over SSH without PC-Connectivity Suite (https://talk.maemo.org/showthread.php?t=48992)

smoku 2010-04-01 19:47

HOWTO access your N900 over SSH without PC-Connectivity Suite
 
  • First install SSH server on the device. I use 'dropbear' package.
  • Check for the following lines in /etc/network/interfaces and if there aren't there, add them (using root):
    Code:

    iface usb0 inet static
            address 192.168.2.15
            netmask 255.255.255.0

  • Connect N900 with USB cable.
  • Select "PC Suite Mode" in popup.
  • Switch to 'root' on N900 and issue the following commands:
    Code:

    ifup usb0
    /etc/init.d/dropbear start

  • If you're using NetworkManager (Ubuntu etc.) wait for the address search to stop (notification area stops "connecting" animation) and you have a "disconnected" popup.
  • Issue the following command on the PC:
    Code:

    sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up
  • Then you may:
    Code:

    ssh root@192.168.2.15

bugelrex 2010-06-18 05:28

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Quote:

Originally Posted by smoku (Post 591829)
  • First install SSH server on the device. I use 'dropbear' package.
  • Check for the following lines in /etc/network/interfaces and if there aren't there, add them (using root):
    Code:

    iface usb0 inet static
            address 192.168.2.15
            netmask 255.255.255.0

  • Connect N900 with USB cable.
  • Select "PC Suite Mode" in popup.
  • Switch to 'root' on N900 and issue the following commands:
    Code:

    ifup usb0
    /etc/init.d/dropbear start

  • If you're using NetworkManager (Ubuntu etc.) wait for the address search to stop (notification area stops "connecting" animation) and you have a "disconnected" popup.
  • Issue the following command on the PC:
    Code:

    sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up
  • Then you may:
    Code:

    ssh root@192.168.2.15


If I want to connect using Windows, what is the equivalent of:
sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up

Does ipconfig provide this same functionality?

debernardis 2010-06-18 06:21

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Please add it to the wiki, too :)

danielwilms 2010-06-18 07:04

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Quote:

Originally Posted by bugelrex (Post 720125)
If I want to connect using Windows, what is the equivalent of:
sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up

Does ipconfig provide this same functionality?

The problem in Windows is, that you need a driver to be installed to use your device as a usb-networking device. This driver should come with PC Connectivity, MADDE and the Nokia Qt SDK. Then you can use the Windows UI to configure your usb connection (IP address etc.)


Quote:

Originally Posted by smoku (Post 591829)
[LIST][*]First install SSH server on the device. I use 'dropbear' package.[*]Check for the following lines in /etc/network/interfaces and if there aren't there, add them (using root):
Code:

iface usb0 inet static
        address 192.168.2.15
        netmask 255.255.255.0

[*]Connect N900 with USB cable.[*]Select "PC Suite Mode" in popup.[*]Switch to 'root' on N900 and issue the following commands:
Code:

ifup usb0
/etc/init.d/dropbear start



It's a matter of taste, but I like MAD developer, as it does all the steps, offering a UI. Maybe you want to have a look at that one.


Quote:

Originally Posted by debernardis (Post 720148)
Please add it to the wiki, too :)

There is a wiki-page already ;)


Daniel

elcaito 2016-03-17 04:47

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Hi guys.
I am having problems doing this but with OpenSSH (not Dropbears). I have WinSCP on my Windows XP machine, but I cannot get it to recognise my Nokia N900 (192.168.2.15). However my PC has a totally different IP address. Do I have to stipulate the IP address on the Nokia N900? Or can I comment out the line in the /etc/network/interfaces file?
I've installed PC Suite 7 and it works (I was shocked), but I want to be able to use WinSCP to access all the other folders and root files, etc on my phone. Thanks

jellyroll 2016-03-17 09:11

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Can you please post the link where I can download MADDE?

Halftux 2016-03-17 10:23

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
1 Attachment(s)
Quote:

Originally Posted by elcaito (Post 1501524)
but I cannot get it to recognise my Nokia N900 (192.168.2.15).

Do you have a usb lan device, when connecting the phone.
When not you need to install the driver or load the usb lan modul on N900 for windows.

Quote:

Originally Posted by elcaito (Post 1501524)
However my PC has a totally different IP address.

If you have a usb lan device put a fixed IP address. For example 192.168.2.14 or start dhcp server on N900.

Quote:

Originally Posted by elcaito (Post 1501524)
Do I have to stipulate the IP address on the Nokia N900? Or can I comment out the line in the /etc/network/interfaces file?

This will not change the ip from your pc.

I attached the usb driver in case you have no usb lan.

P.S.: For loading the usb lan windows modules and change ip address you can use genwall or mad developer. With genwall you can also set a dhcp server.

Halftux 2016-03-17 10:33

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Quote:

Originally Posted by jellyroll (Post 1501537)
Can you please post the link where I can download MADDE?

Madde is also included in the qt sdk. For the stand alone madde version it could be that I have somewhere a copy I will have a look.

Halftux 2016-03-17 23:45

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
I uploaded the latest Madde (381MB). The link is valid for one year.

Madde (Windows) for Maemo version 0.7.48

jellyroll 2016-03-18 18:53

Re: HOWTO access your N900 over SSH without PC-Connectivity Suite
 
Thank you for uploading this file I couldn't find it anywhere on the internet.


All times are GMT. The time now is 17:40.

vBulletin® Version 3.8.8