Notices


Reply
Thread Tools
Posts: 279 | Thanked: 95 times | Joined on Sep 2009
#1
I installed openssh server only inorder toaccess to n900 via winspc and works perfect. but i know have other problems.

1. how can i set open ssh to manual start and which command i use to start it manually?
2. do i also need client in order to access server locally to change setitngs?
2. will the root pw i setup be removed if i remove openssh server?

thanks
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#2
1) I think if you:

rm -f /etc/rc2.d/S55ssh
it will no longer start up automatically.

To make it start up automatically at the next boot, do:

ln -s /etc/init.d/ssh /etc/rc2.d/S55ssh
You need to issue these commands as root from the x-terminal application, or logged in as root over ssh.

To stop and start the ssh server, use xterm, become root and:

/etc/init.d/ssh start
/etc/init.d/ssh stop
2) No, you can go to xterm, become root, and do it from there.

The settings are in the file
/etc/ssh/sshd_config

you will need to stop and start the server for any change to take effect. Your root password is not part of the ssh server settings and can be changed by running the command passwd as root inside x-terminal.

other 2) No, it will stay as you set it.

Last edited by kwotski; 2009-12-19 at 03:26.
 

The Following 2 Users Say Thank You to kwotski For This Useful Post:
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#3
Originally Posted by asidana View Post
I installed openssh server only inorder toaccess to n900 via winspc and works perfect. but i know have other problems.

1. how can i set open ssh to manual start and which command i use to start it manually?
1. get root terminal (open terminal, type "root")
2. run command "update-rc.d -f remove ssh"

To start/stop the SSH server in root shell use command "/etc/init.d/ssh start" or "/etc/init.d/ssh stop"

Originally Posted by asidana View Post
2. do i also need client in order to access server locally to change setitngs?
No, you should be able to get a root shell by simply typing "root" in the terminal.

Originally Posted by asidana View Post
2. will the root pw i setup be removed if i remove openssh server?
I don't think so, not that it matters much upon next install it will probably prompt you for a new one anyway.

kwotski was faster than me: but the update-rc.d is in general the recommended way to muck around with the rc.d directories.
 

The Following 2 Users Say Thank You to rambo For This Useful Post:
Posts: 279 | Thanked: 95 times | Joined on Sep 2009
#4
thanks. if i understand correctly root pw i set is set for whole system. how can i remove it so it's back to factory setting (disabled?)
 
Posts: 279 | Thanked: 95 times | Joined on Sep 2009
#5
another problem:

i removed opensshserver from app manager and when i try to reinstall i get unable to install error. any thoughts?

update: i was able to remove it via apt-get remove and reinstall

Last edited by asidana; 2009-12-13 at 13:55.
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#6
Don't do this! But, in the file /etc/passwd you'll see a line like:

root:OmfGcryptedpwWTF:0:0:root:/root:/bin/sh

If you change the bit I've put as OmfGcryptedpwWTF to just ! then root is in the same state as user once you save the file - no password is set and login is disabled

Now, the reasons I advise you not to do this are:

1) I haven't tried it
2) I don't know for sure that there wasn't already a default root password set on the device, rather than a ! - I didn't look at mine before setting the password
3) There's a fairly good chance that I don't know what I'm talking about, and doing the above will stop something working.. I'm conversant with Linux, but not Maemo 5
4) Why do it anyway? Just set a secure password and change it regularly if you're paranoid about it..

If you really really want to do it, wait for someone who knows what they're talking about to give you the real information Consider this a placeholder.
 
Posts: 279 | Thanked: 95 times | Joined on Sep 2009
#7
i had smilar line on mine before installing openssh-server and installing it created passwd- file (assuming it is backup)
 
Posts: 279 | Thanked: 95 times | Joined on Sep 2009
#8
i wonder if it is good idea to replace passwd with (assumed backup) passwd-

i am paranoid due to couple of reasons. i don't want to fiddle with default system pw and somehow i came to counculusion that installing opensshserver set-canged it
 
Posts: 279 | Thanked: 95 times | Joined on Sep 2009
#9
well i replaced it and phone doesn't boot anymore
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#10
Ok, well if you had that line with a pw before you installed the ssh server, then that really means there is a standard default root password.

That means that once you are running ssh server, anyone knowing that default password and your IP can get root access on your device.

That is a really bad scenario, and almost certainly is why when you install the ssh server it asks you to change the password!

I think it's best to leave the password as you've changed it, it really is A LOT more secure like that.

Evidently it does not harm the system to have it set differently (I've been running mine now with that for nearly 2 weeks).

Edit: Oh, well, a bit too late with that post. But really, slow down!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:43.