title: ssh keys on Rstudio connect server
body: <p>I am using scp (RCurl library) to transfer a filer from remote server to local directory. I have created a ssh key pair and it works fine in my local. However, I am now trying to deploy my app(The app transfers data from remote to local) to RStudio Connect server and it throws authentication failure error. How am I supposed to work with the ssh keypairs on RStudio connect?</p>
  <pre><code>scp(&quot;remote server&quot;, &quot;path to file&quot;,
           keypasswd = &quot;password&quot;,user=&quot;username&quot;, rsa = TRUE, 
           key = c(&quot;~/.ssh/id_rsa.pub&quot;,&quot;~/.ssh/id_rsa&quot;), binary = NA)
  
  </code></pre>
  <p>Thanks in advance.</p>