2010-10-10 22:30
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
2010-10-10 22:39
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
2010-10-10 22:45
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..
2010-10-10 22:49
ok, i'll try this tomorrow, been a long long day and need my rest now, will report back ![]()
2010-10-11 17:58
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
2010-10-11 18:23
2010-10-11 19:08
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
2010-10-11 23:21
2010-10-11 23:30
well it happened before, i installed it because someone at maemo.org told me it may have been set to 'off' for some reason
2010-10-11 23:42
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!
2010-10-12 10:28
It says it can't open it
2010-10-13 18:10
bumping
2010-10-13 19:54
2010-10-13 21:35
Ah, i had it in MyDocs!
Emailed over to you now
2010-10-14 0:01
2010-10-14 0:14
So the status bar plugin isn't a problem?
2010-10-15 9:45
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
2010-10-19 19:14
It's working!
2011-12-09 16:22
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?
2011-12-09 16:27