If you follow my previous post about ssh/scp without password, but you got this error when you try to ssh to B on A, then you need to add RSA or DSA identities to the authentication agent. A ssh-add command on host A will solve your pain.
more ...Suppose you have two machines: A and B. A is your work machine, you do most of your work on it. But B is a little special (e.g., connected to some specific hardware) that you need to ssh on it or copy some file from A to B from time to time. Here is the way that you can get rid of entering passwords every time you do ssh/scp.
more ...