![]() |
2010-01-12
, 12:32
|
|
Posts: 71 |
Thanked: 65 times |
Joined on Oct 2009
@ Brighton, UK
|
#2
|
![]() |
2010-01-12
, 12:36
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#3
|
![]() |
2010-01-12
, 13:41
|
Posts: 169 |
Thanked: 56 times |
Joined on Jan 2010
@ Italia
|
#4
|
you just need to enable the user account, since you're going to use key authorization anyways. setting a password for user is not recommended.
a description can be found here (post #23).
![]() |
2010-01-12
, 13:52
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#5
|
thank you both, i tried to unlock the user account with "passwd -u user", it says: "Password changed.", but I can not connect to the user account yet. The idea of crating an account "mirrored" to user is nice, but I would like to better understand what's going on.
any idea?
chown -r user:users /home/user/.ssh
chmod 600 /home/user/.ssh/id_ra
![]() |
2010-01-12
, 14:02
|
Posts: 24 |
Thanked: 2 times |
Joined on Jan 2010
|
#6
|
you just need to enable the user account, since you're going to use key authorization anyways. setting a password for user is not recommended.
a description can be found here (post #23).
![]() |
2010-01-12
, 14:08
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#7
|
![]() |
2010-01-12
, 14:12
|
Posts: 162 |
Thanked: 25 times |
Joined on Dec 2009
|
#8
|
![]() |
2010-01-12
, 14:23
|
Posts: 388 |
Thanked: 842 times |
Joined on Sep 2009
@ Finland
|
#9
|
![]() |
2010-01-12
, 14:39
|
Posts: 169 |
Thanked: 56 times |
Joined on Jan 2010
@ Italia
|
#10
|
did you copy the file authorized_keys as root into your user folder?
if so, you first have to issue this in xterm as root:
this changes ownership of the directory .ssh to "user", and the group ownership to "users".Code:chown -r user:users /home/user/.ssh
also, make sure your private key file (if you have one on your N900) is safe:
Code:chmod 600 /home/user/.ssh/id_ra
When I ssh root@192.168.0.5 it asks the password and I can login.
Then I created the /root/.ssh/authorized_keys file by copying in it the pub key of my desktop account. Now I can ssh to the N900 without entering the password. Until here was all as expected.
The problem is that if I create the /home/user/.ssh/authorized_keys file as above, the ssh client asks me to enter a password (that doesn't exists - does it?) insted of using the keyfile access.
Anybody managed to ssh into the user account?