maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Need help cleaning up OpenSSH server install. (https://talk.maemo.org/showthread.php?t=40344)

Laughingstok 2010-01-13 15:45

Need help cleaning up OpenSSH server install.
 
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?

Bec 2010-01-13 16:56

Re: Need help cleaning up OpenSSH server install.
 
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.

fatalsaint 2010-01-13 17:04

Re: Need help cleaning up OpenSSH server install.
 
Is there anything in Application Manager logs?

or the output of "apt-get install openssh-server"?

Elhana 2010-01-13 17:06

Re: Need help cleaning up OpenSSH server install.
 
Root password needed so you could login, not for it to work. For example I use rsa auth instead.

Quote:

Originally Posted by Laughingstok (Post 468582)
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

Spenc3 2010-01-13 17:20

Re: Need help cleaning up OpenSSH server install.
 
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.

mikhmv 2010-01-13 17:36

Re: Need help cleaning up OpenSSH server install.
 
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

fatalsaint 2010-01-13 17:37

Re: Need help cleaning up OpenSSH server install.
 
My personal guess is it needs a dpkg-reconfigure .. but won't know without a log report or command output.

Laughingstok 2010-01-13 17:41

Re: Need help cleaning up OpenSSH server install.
 
Quote:

Originally Posted by Elhana (Post 468727)
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

Laughingstok 2010-01-13 17:42

Re: Need help cleaning up OpenSSH server install.
 
Quote:

Originally Posted by Spenc3 (Post 468744)
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.

Laughingstok 2010-01-13 17:44

Re: Need help cleaning up OpenSSH server install.
 
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)


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

vBulletin® Version 3.8.8