maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Lost SSH Root Access? Let me help you! (https://talk.maemo.org/showthread.php?t=79645)

shmerl 2011-11-04 05:01

Re: Root Password Problem
 
No, devel-su should work even after the update. What is disabled is doing: ssh root@localhost for example. Does devel-su fails for you (it should ask for root password and it should work, with whatever you set it to).

If you made some typo while changing the root password - try to figure out what it was, when devel-su asks you for it. Otherwise you might need to reflash it I'm afraid.

F2thaK 2011-11-04 09:38

Re: Root Password Problem
 
in xterm i can do devel-su and it accepts my password, but how do I edit /etc/ssh/sshd_config and change "PermitRootLogin no" to "PermitRootLogin yes" afterwards? I cannot find an app to do this.

Thanks for your help BTW, its really appreciated!

F2thaK 2011-11-04 10:03

Re: Root Password Problem
 
HAHA!!!!!!!! MOFO! fixed it.........................


In xterm:
devel-su
[password]
cd /etc/ssh/
rm sshd_config
mv sshd_config.dpkg.old(?) sshd_config

then reboot


not 100% sure of the file I renamed, it was a backup of the old config file, made when the app was updated.

mooglez 2011-11-04 10:56

Re: Root Password Problem
 
Quote:

Originally Posted by F2thaK (Post 1118189)
in xterm i can do devel-su and it accepts my password, but how do I edit /etc/ssh/sshd_config and change "PermitRootLogin no" to "PermitRootLogin yes" afterwards? I cannot find an app to do this.

Thanks for your help BTW, its really appreciated!

You can install nano from the Nokia store and then as root do

nano /etc/ssh/sshd_config

change the settings you want, for example:

change the port from 22 to something else if you want to enable access from 3G also.

select which IP addresses are allowed to connect.

disable password authentication to use only keybased authentication

enable root login again

etc..

ctrl+o to save, and ctrl+x to quit nano

F2thaK 2011-11-04 11:04

Re: Lost SSH Root Access? Let me help you!
 
I tried nano, i couldnt figure out how to edit files though

mooglez 2011-11-04 11:30

Re: Lost SSH Root Access? Let me help you!
 
Quote:

Originally Posted by F2thaK (Post 1118215)
I tried nano, i couldnt figure out how to edit files though

how did you try to use it?

F2thaK 2011-11-04 11:32

Re: Lost SSH Root Access? Let me help you!
 
I didnt know how to use it

mooglez 2011-11-04 11:35

Re: Lost SSH Root Access? Let me help you!
 
Quote:

Originally Posted by F2thaK (Post 1118224)
I didnt know how to use it

1. open xterm
2. devel-su and then your root password
3. in xterm as root: nano /etc/ssh/sshd_config

then use the arrowkeys on the virtualkeyboard to navigate the file, and modify any settings you want.

once done, ctrl+o and enter saves the file
ctrl+x closes nano

try that

biatch0 2011-11-04 11:41

Re: Lost SSH Root Access? Let me help you!
 
Or use "vi" - comes installed by default.

F2thaK 2011-11-04 11:45

Re: Lost SSH Root Access? Let me help you!
 
ive sorted my prob, thanks


All times are GMT. The time now is 17:49.

vBulletin® Version 3.8.8