check the rights of .ssh/authorized_keys on the hosts, have to be only read- 
and writable for the user (including directory)
Be sure you copied the right key without line-breaks and fragments.  If you 
have a lot of boxes you could use BCFG2:
http://docs.bcfg2.org/

- Alex 



--
Alexander Lorenz
http://mapredit.blogspot.com

On Feb 6, 2012, at 10:55 AM, Bing Li wrote:

> Dear all,
> 
> I am just starting to learn Hadoop. According to the book, Hadoop in
> Action, a common account for each server (masters/slaves) must be created.
> 
> Moreover, I need to create a public/private rsa key pair as follows.
> 
>    ssh-keygen -t rsa
> 
> Then, id_rsa and id_rsa.pub are put under $HOME/.ssh.
> 
> After that, the public key is distributed to other nodes and saved in
> @HOME/.ssh/authorized_keys.
> 
> According to the book (Page 27), I can login in a remote target with the
> following command.
> 
>    ssh target (I typed IP address here)
> 
> However, according to the book, no password is required to sign in the
> target. On my machine, it is required to type password each time.
> 
> Any affects for my future to configure Hadoop? What's wrong with my work?
> 
> Thanks so much!
> Bing

Reply via email to