SSH Password Less authentication is not working after generating and adding the public key also.

Hi,

My issue is I am running the job from one server which FTP the file to another server. I am using SCP command to do so. But it asking password while connecting to target server.
I have generated SSH key in source server and added the generated key in target but still while executing the job its asking password. While executing I am getting following error in the console.

/apps/content/gfa/pdfs/groupltcpdf/submittedpdf/dbpdf/A0123543_1378758352470.pdf
Password Authentication
Password Authentication
Password Authentication
Received disconnect from 10.16.116.146: 11: Too many bad authentication attempts!
lost connection

I have done this thing in my old server and it was working fine but now the source server is changed and from the new source server I am getting this error. its still working fine from my old server without asking password.

Many thanks in advance.

Thanks,
Amit

Either you have not properly copied the public key file to the remote
server (where the SSH server, vs. the client, is running) or else you have
not loaded the key properly into the SSH agent on the client side. If you
are using the same authorized_keys file on the server for both client
connections and if you are sure that you have the server side setup
correctly with those keys then I’d be completely sure that you are
properly loading the key. Try these commands on the client that is not
working:

Code:

ssh-agent /bin/bash
ssh-add
ssh user@server.goes.here

If that works, maybe it’ll help.

Good luck.