I have a testbed with a centre server and a couple of client.
The NIS and NFS are used in the system to manage the user account and shared file.
The /usr/home on the clients machine is mounted from the centre service, thus each client machine has the same /usr/home as the server.
I need ssh passwordless access from a client to another 2 client machine as I have a script to scp files between those clients.
I used the code below to generate the key pair and share the key to the client
However, it doesn't work when I use the user account. But is worked when I used the root account.
I reckon it may cause by the NIS and NFS.
Can anybody give me some help?
Thank you very much.
The NIS and NFS are used in the system to manage the user account and shared file.
The /usr/home on the clients machine is mounted from the centre service, thus each client machine has the same /usr/home as the server.
I need ssh passwordless access from a client to another 2 client machine as I have a script to scp files between those clients.
I used the code below to generate the key pair and share the key to the client
Code:
#ssh-keygen -t rsa
#cat id_rsa.pub | ssh username@client 'cat >> .ssh/authorized_keys'
I reckon it may cause by the NIS and NFS.
Can anybody give me some help?
Thank you very much.