Hi,

The situation I am in is as follows:

There are some computers in a network. They are sharing the same file server ie the same home directory. I am not sure how it works but logging from any machine using the same user name takes me to the same home directory. Now I am trying to ssh from one machine to another because I want to run a client server application where clients and server are running on different computers. For this reason I wrote some script, to run the clients in different computers using command like this

ssh machine1 ./client.o machine0
ssh machine2 ./client.o machine0
ssh machine3 ./client.o machine0

But it asks password as a result of calling the ssh. I am not sure how to prevent machines from asking passwords. The problem is the ssh keys are stored in the same .ssh under the same home directory. Please suggest some way out of this trap.

Thanks.

Make sure the ssh is configured to allow public key access. Also, make sure your authorized_keys file is setup properly, and are you sure its asking for a password and not a passphrase, which is connected to the ssh key.

Make sure the ssh is configured to allow public key access. Also, make sure your authorized_keys file is setup properly, and are you sure its asking for a password and not a passphrase, which is connected to the ssh key.

I guess I did something wrong the files under .ssh directory. After I deleted the whole directory and run ssh-keygen and other stuffs it worked again. I figure I corrupted the files under .ssh and so nothing was working (the ssh-keygen etc).

Thanks for your response anyway.

It was probably a permissions issue. Did you create the .ssh directory manually? If you check the system logs, you'll probably find an error about permissions on the .ssh directory (just a guess).

-G

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.