maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 Terminal window on my PC (https://talk.maemo.org/showthread.php?t=45263)

davidh101 2010-02-20 19:25

N900 Terminal window on my PC
 
Ok, so another noob question, I have tried a quick search, but have been a bit rubbish at it.

I'm wondering if it is possible to connect to the N900 and access the terminal on my PC.

I assume that this needs to be done via SSH, for which I use puTTy quite frequently on the PC for managing other devices, but obviously the N900 doesn't appear to do this out of the box.

So, what I need to know is what do I need to do on my N900 to enable this (simple steps if possible, or point me to another post that explains it)

noobmonkey 2010-02-20 19:41

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by davidh101 (Post 538805)
Ok, so another noob question, I have tried a quick search, but have been a bit rubbish at it.

I'm wondering if it is possible to connect to the N900 and access the terminal on my PC.

I assume that this needs to be done via SSH, for which I use puTTy quite frequently on the PC for managing other devices, but obviously the N900 doesn't appear to do this out of the box.

So, what I need to know is what do I need to do on my N900 to enable this (simple steps if possible, or point me to another post that explains it)

there is an ssh server in one of the repo's. should work fine :)
i use it with winscp alot :!

youxing 2010-02-20 19:47

Re: N900 Terminal window on my PC
 
Install Personal Home IP Widget on your N900
Install OpenSSH on N900.
You will be promted to enter a password during installation.

After that, you add the Personal Home IP Widget to your N900 Desktop and connect the N900 to your WiFi at home.

The Personal Home IP Widget will show your IP address.

Enter this IP address in PuTTY on your PC and you are good to go!

WinSCP (to see all your N900 files on PC over WiFi) should work the same way!

rolan900d 2010-02-20 19:49

Re: N900 Terminal window on my PC
 
I have tried it with WinSCP server and client but was unable to connect all the time...

v13 2010-02-20 19:52

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by davidh101 (Post 538805)
I'm wondering if it is possible to connect to the N900 and access the terminal on my PC.

So, what I need to know is what do I need to do on my N900 to enable this (simple steps if possible, or point me to another post that explains it)

First install an ssh server to the phone (you'll find one in extras-testing and maybe in extras). Second, create a password for user "user". Next, determine the IP address of the phone and do an ssh to it with username "user".

However, this will not work very well because of the wifi power saving. To quickly test this, open a terminal in n900, become root and start pinging the pc you'll use to connect to it.

One way to fix this is to completely disable power-saving for your home connection.

A better solution is to use usb networking. This is described here.

rolan900d 2010-02-20 20:25

Re: N900 Terminal window on my PC
 
I used OpenSSH client and server...
Choos a password and same like WinSCP and PuTTY,

Network error: connection time out

wmarone 2010-02-20 20:42

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by rolan900d (Post 538866)
I used OpenSSH client and server...
Choos a password and same like WinSCP and PuTTY,

Network error: connection time out

Is your device on your local wifi, or is it on your cellular data connection?

v13 2010-02-20 21:00

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by rolan900d (Post 538866)
I used OpenSSH client and server...
Choos a password and same like WinSCP and PuTTY,

Network error: connection time out

Read my post above about wireless power-saving.

codeMonkey 2010-02-20 21:11

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by davidh101 (Post 538805)
I'm wondering if it is possible to connect to the N900 and access the terminal on my PC.

Do you have an ssh server installed on your PC?

rolan900d 2010-02-20 23:20

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by wmarone (Post 538884)
Is your device on your local wifi, or is it on your cellular data connection?

On cellular service...
I use my ip from cell and operator

CharlesM 2010-02-21 11:07

Re: N900 Terminal window on my PC
 
openssh and putty worked fine for me
but it will slow your phone down

hqh 2010-02-21 11:16

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by rolan900d (Post 539050)
On cellular service...
I use my ip from cell and operator

Some operators block incoming connections.

Quote:

Originally Posted by CharlesM (Post 539519)
but it will slow your phone down

I don't think that's the case (unless you're doing some heavy file transfers). Care to explain?

pennywise 2010-02-21 17:27

Re: N900 Terminal window on my PC
 
installed openssh client and server.
could not connect using WinSCP.

tried to ping from pc to n900, failed as well.
mhh.

opened shell on n900, ping to pc: 100% fine.

mhh, pinged from pc to n900 again, now also 100% ok.
WinSCP now also would conect fine.

tried several times and could replicate each time.
cannot ping from pc to n900 until i ping pc from n900 first.
any clues on how to solved this?

then bumped my phone from the desk and it dropped 1m. result: screen broke and need a replacement. :(

DanielMartin 2010-02-21 17:33

Re: N900 Terminal window on my PC
 
Ouch, that's a shame mate.

v13 2010-02-21 18:28

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by pennywise (Post 539840)
mhh, pinged from pc to n900 again, now also 100% ok.
WinSCP now also would conect fine.

tried several times and could replicate each time.
cannot ping from pc to n900 until i ping pc from n900 first.
any clues on how to solved this?

WTF? Are you people blind or bored?

I've already answered your question 8 replies ago and already pointed to that question 5 replies ago. Just read the fine thread from the beginning.

propelli 2010-02-21 18:47

Re: N900 Terminal window on my PC
 
Maybe you could try to open a reverse tunnel from n900 to laptops ssh server.

on n900 do:

ssh -R localhost:3333:localhost:22 someuser@server.ip

on laptop do:

ssh -p 3333 root@localhost

works fine with openssh server at both ends (laptop and n900)

propelli

Alan_Peery 2010-02-21 19:44

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by propelli (Post 539923)
Maybe you could try to open a reverse tunnel from n900 to laptops ssh server.

That's a good thought. Initiating the connection from the N900 should keep the network up, or at least restart it.

If it still drops on you, consider adding a flag to add TCP keepalives into the stream.

pennywise 2010-02-21 22:20

Re: N900 Terminal window on my PC
 
not blind, little bored maybe.
but I guess you did not understand that i already had this power-saving off.

you "answered" my question, but still not gave a solution.
hence my question here.

if you say so, then I believe it works for some, but for me it didn't.


@propelli, its not that the connection is dropping.
I just cannot initiate telnet /ping from pc to n900.
one ping / telnet from n900 to pc and all later connections are fine.

@Alan_Peery
thats the whole issue, why do i need to initiate a connection /ping from N900 to an external device first?

both are already on the same network and general connection on devices is fine. browsing and mail work fine. even filetransfers from mounted shares work fine.
but unless i give 1 ping from n900 to pc first, all telnet or ping comms from PC to n900 fails.


Quote:

Originally Posted by v13 (Post 539906)
WTF? Are you people blind or bored?

I've already answered your question 8 replies ago and already pointed to that question 5 replies ago. Just read the fine thread from the beginning.


propelli 2010-02-22 06:28

Re: N900 Terminal window on my PC
 
Take a look at your wireless router: see if your n900 is listed as active dhcp client when you try to ping it from pc (without success). If it is not listed as active then ping from n900 and see if it then changes to active.

If you see the above behaviour on your wireless router, then your problem may have something to do with n900 powersavings : in order to save power the n900 drops active connections when they are not in use (this changes when you ping your pc from n900).

To fix this you might try the following setup:
Configure your wireless router's dhcp server to serve your n900 with a fixed lan ip address and then set your n900 "internet connections" to:
- connect automatically: any connection
- check the checkbox "Switch to wlan when available"

propelli

davidh101 2010-02-22 22:54

Re: N900 Terminal window on my PC
 
OpenSSH and PuTTY, dome the job perfectly for me

Thanks guys

mr_skot 2010-07-05 00:28

Re: N900 Terminal window on my PC
 
I've been following this thread as I'm having the same issue when I try to WinScp to my N900. The connection seems to get lost and times out. ssh rrot@localhost was working fine...

Checked my router status and both my Wnidows laptop and the N900 were there.

My solution, although very old school was to ping the router from my N900 and leave it. At that point WinScp connected just fine. Kill the ping, WinScp could not connect and complained. Very odd, but I got it working.

9000 2010-07-05 00:48

Re: N900 Terminal window on my PC
 
Don't feel bad about it. That's the way normal keep-alive is doing, with different time intervals.

Venemo 2010-07-05 01:00

Re: N900 Terminal window on my PC
 
My best solution is using WinSCP with USB Networking. (The Mad Developer package lets you do that very easily.)

For remote terminal, I use the app called Putty.

eduperez 2010-07-05 02:02

Re: N900 Terminal window on my PC
 
Just made openssh work the way I wanted.

I made it NOT to load automatically, and create a script to start the service, wait for a keyboard input and then stop the server. So, when I want to connect, I have to go to the device, execute a program, go to the PC, connect and use it. When I'm done, I go to the n900 and press a key so it stops waiting for connections.

I had a hard time finding out how to create a ".desktop" file in /usr/share/applications/hildonm, but eventually got it working.

Venemo: I didn't know it is possible to use USB networking... it is better to save battery and no security concerns. I'll try it.

dineshmsc2 2010-09-04 18:25

Re: N900 Terminal window on my PC
 
Quote:

Originally Posted by wmarone (Post 538884)
Is your device on your local wifi, or is it on your cellular data connection?

there r more tow way for remote

Creamy Goodness 2010-09-04 18:31

Re: N900 Terminal window on my PC
 
http://www.appcheck.net/storage/Snap6.png


All times are GMT. The time now is 02:00.

vBulletin® Version 3.8.8