![]() |
Re: linux noob requires help with openssh
yes. sorry. application manager
but cant uninstall rootsh. yes, also running put with same result. thx anyway |
Re: linux noob requires help with openssh
How are you changing the root password?
Edit: This is how it looks when I do it: Quote:
I type "passwd" and enter, then follow the instructions. It doesn't actually care if you enter numbers or upper case letters, btw, it's just giving you advice ;) After I've done this, I can test it by typing "login" at the same place: Quote:
You could maybe try this procedure to see if you're changing the password properly. I would do this, then if the password and login is ok, re-install the openssh client (yeah, I know ... ;) ) and then do: N900:~# ssh 127.0.0.1 This will try and connect from the N900 to the N900 so we don't need to worry about network issues :) It should look something like this: Quote:
|
Re: linux noob requires help with openssh
if you're up to it, i have one more suggestion :)
by default, ssh doesn't log anything because the needed facility is missing, but with these steps you enable logging, which might help you track down the problem : first, install sysklogd and klogd (all these steps require root access) Code:
apt-get install sysklogd klogd next, you have to enable the AUTH facility: edit /etc/syslog.conf and remove the # in the line containing auth.log you can use vi: Code:
vi /etc/syslog.conf press 'x' once to remove one character (the # sign) it should look like this: Code:
auth,authpriv.* /var/log/auth.log Code:
:x after the reboot, fire up xterminal again and watch the auth.log file: Code:
tail -f /var/log/auth.log with the -f option, tail keeps the file open and shows you changes as they happen. if you now try to connect again using putty or winscp, you should see something happening, hopefully including what's wrong. :) a succesfull password authentication should look like this: Code:
Dec 18 02:07:24 Nokia-N900-42-11 sshd[1817]: Accepted password for root from 172.16.66.14 port 48845 ssh2 Code:
/etc/init.d/ssh restart |
Re: linux noob requires help with openssh
Quote:
Code:
sudo gainroot |
Re: linux noob requires help with openssh
Quote:
I was asking Dave999 how *he* was doing it. He isn't the clearest communicator, unfortunately ;) |
Re: linux noob requires help with openssh
Quote:
time for bed |
Re: linux noob requires help with openssh
Hey, why not use keys to authenticate...
a) Way more secure b) No need to type password c) Automation possible Instead of listing the steps here how to create keys under Linux and use them, I'd rather link to http://linux.com tutorial which has some more useful information: Using key-based authentication over SSH When you are on windows... you are on your own... okay, I am not that mean :-) Just use Putty to generate a valid key: Key-Based SSH Logins With PuTTY (I just tried it once with windows and a small note: PuTTY keys can not be used to authenticate Linux <-> Linux connections) And just another hint for those who can't get a connection to there device when connected to the Internet via GPRS/UMTS. Some providers do NAT, so the IP address the phone gets assigned is a none routeable address and thus you will not be able to connect to your device. Use some sort of VPN (OpenVPN) to get rid of that nasty problem. Cheers Bjoern |
Re: linux noob requires help with openssh
thx all for your help
now ------------------------------------------------------- Nokia-N900-42-11~#"login" User:"root" password:xxxxxxx this works. -------------------------------------------------------- Nokia-N900-42-11~#"ssh 127.0.0.1" enter same password. working |
Re: linux noob requires help with openssh
you can't login as "user" cause this account has no password by default (you would have to enable passwordless login)
be sure to do the following on the N900: Quote:
Quote:
If the login still does not work, post the entire output here. I still would recommend to use key authentication instead of user/password verification. Cheers Bjoern |
Re: linux noob requires help with openssh
Thx for all the help. will look into keys now.
have a few qustions if anyone have time. since im now log in with root in sshd_config I want to set this flag to no: PermitRootLogin yes. but do I need to create a new user or how can I log in after i changed this to "no"? how do I create new user? shall i change to another port than 22? how do i do that? |
All times are GMT. The time now is 09:11. |
vBulletin® Version 3.8.8