I have a server and worker node and the /home at server is shared with worker via NFS. I also want apply passwordless ssh for each user between these two. This is what I did and please note the error:
Code:
user1@server:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user1/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
The key fingerprint is:
................. user1@server
The key's randomart image is:
.....
.....
user1@server:~$ ls -l .ssh/
total 8
-rw------- 1 user1 users 1679 2011-01-08 22:43 id_rsa
-rw-r--r-- 1 user1 users 397 2011-01-08 22:43 id_rsa.pub
user1@server:~$ ssh-copy-id worker
Warning: Permanently added 'worker,192.168.1.2' (RSA) to the list of known hosts.
user1@worker's password:
bash: .ssh/authorized_keys: Permission denied
user1@server:~$
Any idea about that error?