Search Discussions:
Advanced Search...
Welcome to Nokia Support Discussions! Here you can share advice and tips with thousands of other Nokia users around the world in English. Many Nokia employees also follow and participate in the discussions, see our guidelines for more information. Everyone can search and read the discussions, but to post your own question or reply to others, simply sign in with your Nokia account. If this is your first time here, you can choose an alias to represent you. And if you don't have a Nokia account yet, please register.
Reply

Re: SSH help

Mobile Guru
Posts: 3,500

Re: SSH help

 

Ok.. that means the service is running now.. and you should be able to login using winscp (providing you know the password)

 

However, this doesn't explain why your phone isn't starting ssh at boot time..

 

Maemo uses something called upstart.. this system controls what software is run when the phone boots up... the file /etc/event.d/sshd contains all the info about openssh on your phone..

 

start on stopped rcS

 

This line means ssh is started when the phone comes out of startup mode (rcS)... However, if your phone is getting stuck waiting for something to start..

 

This might mean something is really wrong..

 

Can you run

 

sudogain root

status rcS

 

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

I typed 'yes' and it said warning, permanent added 'localhost' to the list of known hosts.

Write failed: broken pipe.

 

WinSCP failed to connect again.

 

The other command you just gave says rsC (stop) waiting

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

the what?!

ok this is going to be tough..

open two x terminals.. (tap top of screen, new)

In the first run this

sudo gainroot

stop sshd

/usr/sbin/sshd -D -d -e 2>&1 | tee /home/user/MyDocs/sshd.txt

 

In the other window run

 

ssh user@localhost

then try and log in.. it might fail.. if it doesn't fail, close the window...

 

Go back to the first window.. make sure sshd has stopped and you can see the command prompt again, waiting for a new command..

 

Now. find the sshd.txt file on your phone and post here attaching it as an attachment..

 

something is really unhappy..

 

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

ok, i'll try this tomorrow, been a long long day and need my rest now, will report back :smileyhappy:

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

ok slight development. I realised i have the status bar plugin installed and it was set to off. I turned it on and the ssh user@localhost worked and wants a password. I entered the password and it said permission denied, please try again. user@localhost's password:

 

 

When i entered your command from your last post, same thing happens, it asks for a password then denies it

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

which status bsr plugin? it sounds like it has a bug.. more details please!!

in mean time, run

sudo gainroot
passwd user

then set a new password for "user" then you should be set
Please use plain text.
Professor
Posts: 1,314

Re: SSH help

going round in circles. changed password, opened winscp, won't log in. ran ssh user@localhost and got connection refused again.

 

The status bar plugin is just to turn SSH on or off

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

oooh.. you didn't say you had something that starts and stops the daemon..

It's that that is causing the problem.. SSHd is far to simple a beast to randomly start and stop behaving.. once it is running it runs pretty much the same way forever.. if you have some dodgy plugin thinger starting and stopping it intermittently, that's just going to cause headaches!
Please use plain text.
Professor
Posts: 1,314

Re: SSH help

well it happened before, i installed it because someone at maemo.org told me it may have been set to 'off' for some reason

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

Ok, I'm game..

Hypothesis....

something you've installed is blocking init during rcS
This means upstart never reaches "stopped rcS"

sooo....

Can you download this file into the Documents folder

http://chris.intrepid.cx/N900/debugetc.sh

Open an x terminal
run
sudo gainroot
sh MyDocs/.documents/debugetc.sh

Then email the etc.tar file to the email address shown.. and I'll hunt down the damn thing!

 

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

It says it can't open it

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

bumping

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

oooooh.. I was waiting for a mail.. didn't see your last post.. whoops!

You opened the link on the phone's browser?
You need to save it in the Documents folder.. must be in Documents

Then run

sudo gainroot
sh MyDocs/.documents/debugetc.sh
Please use plain text.
Professor
Posts: 1,314

Re: SSH help

Ah, i had it in MyDocs!

Emailed over to you now

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

nnng.. not impressed... more research .. :-S

so far, all looks normal.. dammit
Please use plain text.
Professor
Posts: 1,314

Re: SSH help

So the status bar plugin isn't a problem?

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

is there another method instead of SSH? I only want it to copy my themes folder because it has custom icons that won't be there after a reflash

Please use plain text.
Professor
Posts: 1,314

Re: SSH help

It's working!

Please use plain text.
Advisor
uptoyou1
Posts: 10

Re: SSH help

hi, I´m facing the same problem on my N9.

 

I went through your instructions but I´m not able to use sudo gainroot.

always get "not found".

 

do you have any idea?

Please use plain text.
Mobile Guru
Posts: 3,500

Re: SSH help

its not sudo gainroot on the n9..

its devel-su
with the password "rootme"
Please use plain text.