Notices


Reply
Thread Tools
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#1
So I was installing OpenSSH server on my N900.. made it past the point of it asking me for a new root password.

Then I dropped my phone, the back flew off and the battery came out.

The N900 started up fine again, but the openssh server does not work (I expected that to happen since it never truly finished installed)

I can "uninstall" it fine from the app-manager, then attempt to reinstall it. When I do, it tells me the installation fails, but it appears yet again in my uninstall list. Upon attempting to ssh to the n900 (localhost) it fails to connect, so it's not working.

Any ideas or help on how I can clean up this botched install and start clean with it?
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#2
There are 3 installers in the repos. I had a simmilar issue and I managed to get rid of it by playing with those.

Dunno if this will help but give it a try.
__________________
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#3
Is there anything in Application Manager logs?

or the output of "apt-get install openssh-server"?
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 97 | Thanked: 30 times | Joined on Dec 2009 @ Russia, Moscow
#4
Root password needed so you could login, not for it to work. For example I use rsa auth instead.

Originally Posted by Laughingstok View Post
Upon attempting to ssh to the n900 (localhost) it fails to connect
This line worries me, how exactly are you trying to connect? Because connecting to localhost from another machine is wrong.

Also it might be because sshd is not started after installing package, reboot device or run this
Code:
/etc/init.d/ssh start
 
Posts: 52 | Thanked: 44 times | Joined on Dec 2008 @ Mississauga, ON
#5
have you try cleaning the install??
i.e. sudo apt-get remove --purge openssh-server in xTerm?

Hopefully that will bring it back to a state where you can start off scratch again.
 

The Following User Says Thank You to Spenc3 For This Useful Post:
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#6
1. Check is it on or off:
a) open x-term
b) type "ps | grep sshd"
if you will get line with "/usr/sbin/sshd"
It is working.

2. type "rm -R /root/.ssh"
it will remove all settings for ssh
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#7
My personal guess is it needs a dpkg-reconfigure .. but won't know without a log report or command output.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#8
Originally Posted by Elhana View Post
Root password needed so you could login, not for it to work. For example I use rsa auth instead.


This line worries me, how exactly are you trying to connect? Because connecting to localhost from another machine is wrong.

Also it might be because sshd is not started after installing package, reboot device or run this
Code:
/etc/init.d/ssh start
ssh localhost

from the N900.

There are corrupted files on the N900 somewhere. I need to figure out what all I need to clean-up
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#9
Originally Posted by Spenc3 View Post
have you try cleaning the install??
i.e. sudo apt-get remove --purge openssh-server in xTerm?

Hopefully that will bring it back to a state where you can start off scratch again.
I will try this. Thanks.
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#10
dpkg: error processing openssh-server (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:48.