maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   linux noob requires help with openssh (https://talk.maemo.org/showthread.php?t=36998)

SubCore 2009-12-17 17:35

Re: linux noob requires help with openssh
 
what does
Code:

netstat -a | grep ssh
say?

you should get a line containing "0.0.0.0:ssh", meaning that the daemon is listening on all interfaces on port 22 (="ssh").
if that is not the case, your setup has an error.

you could also try re-setting the password, using these two commands:
Code:

sudo gainroot
passwd

edit:
and, as a last resort, you could delete the /root/.ssh folder after deinstalling SSH, and then reinstall.

Dave999 2009-12-17 17:51

Re: linux noob requires help with openssh
 
Ok,
I got the line
tcp 0 0 0.0.0.0:ssh 0.0.0.0:*

kwotski 2009-12-17 17:57

Re: linux noob requires help with openssh
 
What happens when you try and connect? Connection refused?

Dave999 2009-12-17 18:09

Re: linux noob requires help with openssh
 
yes. connection refused. nothing, just got another retry

Dave999 2009-12-17 18:10

Re: linux noob requires help with openssh
 
think i will try to change root passwd

kwotski 2009-12-17 18:21

Re: linux noob requires help with openssh
 
Sounds good. "connection refused" would be when there's nothing listening. If it's asking you for the password then it's listening.

Dave999 2009-12-17 18:28

Re: linux noob requires help with openssh
 
yes, its listening, unfortunately not on me :)

tried to change root password, still the same result

SubCore 2009-12-17 18:53

Re: linux noob requires help with openssh
 
@Dave

did you try reinstalling, but removing the .ssh folder in /root between de- and reinstallation?

also, what program do you use to connect? maybe your N900's encryption keys have changed and your program thinks there's an attack or something...

and you didn't change anything in /etc/ssh/sshd_config, right?

Dave999 2009-12-17 19:03

Re: linux noob requires help with openssh
 
I did not removed any folder.

First, I installed ssh bundle from file manager
created a password. ssh with winscp worked fine.

after that. unistalled server and klient 8 kb from file manager, and client from file manager.

still worked with winscp.

now installed rootsh. typed root

and stopped server and then restarted server. now. i couldent log in any more.

tryed to reconfigur my wlan and wifi(still the same ip on comp and n900 but with another wep.

and atlast 10 min ago. tried to change the root password.

im using winscp from win vista.

SubCore 2009-12-17 19:15

Re: linux noob requires help with openssh
 
Quote:

Originally Posted by Dave999 (Post 432282)
after that. unistalled server and klient 8 kb from file manager, and client from file manager.

FILE manager? not application manager?

seems like rootsh did something the openssh server doesn't like...
try this:
deinstall both
remove the folders /root/.ssh and /etc/ssh if they exist - by this you purge every configuration so you can start fresh
Code:

rm -rf /root/.ssh
rm -rf /etc/ssh

does the purging, but be VERY careful not to mistype anything! rm -rf can be dangerous.
install rootsh first
install openssh server


edit:
i just realized - winscp has no shell client, its only intended for copying. could you please try connecting with putty as well?


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

vBulletin® Version 3.8.8