I am trying to send files from Linux to DataPower server using public key based authentication but it's not working as expected and every-time password expecting for sftp transfer.
Can someone please help on this?
Steps I fallowed:
Created keys pair at source server
Copied in public in DataPower Gateway config file
Initiated transfer
Logs when I initiated transfer:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: ./publickey_for_pwdless.pub
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
user@XX.XX.XX.XX's password:
It's obvious that your publickey authentication doesn't work. Are you able to log in interactively, i.e. to a command line session? Are you using the correct protocol (version)?
You probably need to set up password-less SSH connection keys. If you have created the keys, put them in the correct place and it is still not working, it could be down to permissions. The SSH protocol is quite rightly paranoid so the various files & directories should be RW to the owner only.
Can you show us the output from both the client and the server side for these:-