![]() |
linux noob requires help with openssh
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 |
Re: linux noob requires help with openssh
1) I think if you:
Quote:
To make it start up automatically at the next boot, do: Quote:
To stop and start the ssh server, use xterm, become root and: Quote:
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. |
Re: linux noob requires help with openssh
Quote:
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" Quote:
Quote:
kwotski was faster than me: but the update-rc.d is in general the recommended way to muck around with the rc.d directories. |
Re: linux noob requires help with openssh
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?)
|
Re: linux noob requires help with openssh
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 |
Re: linux noob requires help with openssh
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. |
Re: linux noob requires help with openssh
i had smilar line on mine before installing openssh-server and installing it created passwd- file (assuming it is backup)
|
Re: linux noob requires help with openssh
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 |
Re: linux noob requires help with openssh
well i replaced it and phone doesn't boot anymore
|
Re: linux noob requires help with openssh
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! |
All times are GMT. The time now is 23:20. |
vBulletin® Version 3.8.8