Active Topics

 


Reply
Thread Tools
Posts: 58 | Thanked: 8 times | Joined on Aug 2010
#1
Hi, I can connect to my N900 by using command below.

ssh root@192.168.2.15:

But the precondition is that I open and start Mad Developer on N900 already.
And if I close Mad Developer now, I still can connect to N900 by ssh.

But if I restart my N900 and don't open Mad Developer any more, then I try to connect to N900 by ssh, I get the response like below.

ssh: connect to host 192.168.2.15: port 22: Bad file number

Does anyone know why and how to solve it? Thanks!
 
casper27's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#2
Have you downloaded ssh client and server from repos. The service will start automatically.
 
fnordianslip's Avatar
Posts: 670 | Thanked: 359 times | Joined on May 2007
#3
You have a superfluous colon at the end of:
ssh root@192.168.2.15:
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.
 
Posts: 58 | Thanked: 8 times | Joined on Aug 2010
#4
Originally Posted by casper27 View Post
Have you downloaded ssh client and server from repos. The service will start automatically.
Yes, I checked that I installed OpenSSH-Client and Open-Server. In fact, when installing Mad Developer, both OpenSSH-Client and Open-Server will be installed because of the dependency.
 
Posts: 58 | Thanked: 8 times | Joined on Aug 2010
#5
Originally Posted by fnordianslip View Post
You have a superfluous colon at the end of:
ssh root@192.168.2.15:

I remove it, but the result is same.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#6
Is the ssh server started?
Code:
ps ax | grep sshd
You can start it by
Code:
/etc/init.d/ssh start
And you should be able to make it autostart (on reboot) by:
Code:
update-rc.d ssh default
 
Posts: 415 | Thanked: 732 times | Joined on Jan 2009 @ Finland
#7
USB networking enabled? I'd guess mad dev enables it when you start it.

http://wiki.maemo.org/N900_USB_networking
 
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#8
Originally Posted by justforfun View Post
Hi, I can connect to my N900 by using command below.

ssh root@192.168.2.15:

But the precondition is that I open and start Mad Developer on N900 already.
And if I close Mad Developer now, I still can connect to N900 by ssh.

But if I restart my N900 and don't open Mad Developer any more, then I try to connect to N900 by ssh, I get the response like below.

ssh: connect to host 192.168.2.15: port 22: Bad file number

Does anyone know why and how to solve it? Thanks!
This is because Mad Developer starts USB networking when you start it. If you don't start Mad Developer, it can't enable USB networking for you.

Note that SSH also works over a Wi-Fi connection, for which you don't need Mad Developer. Just install the OpenSSH service for this.
 

The Following User Says Thank You to Venemo For This Useful Post:
hans51's Avatar
Posts: 25 | Thanked: 5 times | Joined on May 2010 @ Philippines and Cambodia
#9
For successful USB-SSH connection, I have installed on my N900:

openSSH client and server
and to switch SSH ON or OFF I use:
SSH status and switcher widget

then I start on N900 bash:

ifup usb0

then on my laptop ( I use below ONE line as a bash alias !):

sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 && ssh root@192.168.2.15

after that I am connected
when connecting USB cable - the N900 mode is PC suite mode
 
Posts: 58 | Thanked: 8 times | Joined on Aug 2010
#10
Originally Posted by timoph View Post
USB networking enabled? I'd guess mad dev enables it when you start it.

http://wiki.maemo.org/N900_USB_networking

Hi, I took a look at that link and found below sentence.
'To use the USB network mode alongside with a Windows host, you must use MADDE.' So I guess it is necessary to boot MADDE first and then use ssh for connection between PC and N900.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:30.