# I cannot scp file to the client server

**URL:** <https://discuss.elastic.co/t/i-cannot-scp-file-to-the-client-server/130310>\
**Category:** Logstash\
**Created:** [May 2, 2018, 6:20pm UTC](https://discuss.elastic.co/t/i-cannot-scp-file-to-the-client-server/130310 "2018-05-02T18:20:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Temitope1](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@Temitope1](https://discuss.elastic.co/u/Temitope1)\
**Post date:** [May 2, 2018, 6:20pm UTC](https://discuss.elastic.co/t/i-cannot-scp-file-to-the-client-server/130310/1 "2018-05-02T18:20:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 30, 2018, 6:20pm UTC](https://discuss.elastic.co/t/i-cannot-scp-file-to-the-client-server/130310/2 "2018-05-30T18:20:44Z")

</div>

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