I cannot scp file to the client server

Hello everyone, I am new at setting up ELK, but I have install everything except for setting up filebeat and sharing cert with client server, so i use the below command to copy the file but i got permission denied. is there something that I am doing wrong as I have setup ssh connection btw the servers and I am able to log into the client server but not able to copy file over. Help meeeee.

scp /etc/pki/tls/certs/logstash-forwarder.crt test@client_server xxx xxx xxx xxx:/tmp
Permission denied (publickey).
lost connection

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.