Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Feb 2010 @ Helsinki
#1
I have been following the instructions both in Pc-connectivity page (http://maemo.org/development/documen..._connectivity/) and a related post by greygoo (http://talk.maemo.org/showthread.php...t=ssh+password).

After creating the private / public key pair on my host machine I have copied the public key on my tablet (N900) and appended the content to two locations:

1. /root/.ssh/authorized_keys (username: root)
2. /home/user/.ssh/authorized_keys (username: user)

I am able to ssh in to my tablet from the host machine without a password as root, but not as user. When I ssh in as user I'm still being prompted for the password.

Could this be a permission issue with /home/user/authorized_keys?

Last edited by jlehtoma; 2010-02-20 at 10:27.
 
juise-'s Avatar
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#2
Originally Posted by jlehtoma View Post
2. /home/user/authorized_keys (username: user)
You have wrong path here. Should be:
/home/user/.ssh/authorized_keys
 
Posts: 3 | Thanked: 0 times | Joined on Feb 2010 @ Helsinki
#3
Thanks for the notice, that was just a typo (corrected in the original post). Path is correct on my tablet.
 
Posts: 13 | Thanked: 3 times | Joined on Feb 2010 @ Peking,China
#4
the "user" account has been locked,you cannot do ssh login using this name
 

The Following User Says Thank You to snnn For This Useful Post:
Posts: 3 | Thanked: 0 times | Joined on Feb 2010 @ Helsinki
#5
Problem solved, by creating a new user and repeating the steps I can now ssh the new user in without a password. Thanks!
 
Posts: 12 | Thanked: 2 times | Joined on Dec 2009
#6
you should probably use "ssh-copy-id" to transfer and add the key(s). That is theoretically more secure and certainly less error prone.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#7
Originally Posted by snnn View Post
the "user" account has been locked,you cannot do ssh login using this name
Sure you can - I do this all the time. You'll need to make sure the permissions on the .ssh directory and the authorized_keys file are set correctly (0700 for the directory and 0600 for the file).
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:20.