title: How to copy file from SSH remote host to Jenkins Server
body: <p>We are using Jenkins server for our daily build process and executes some bash scripts on remote hosts over SSH. This scripts are generating html log files on remote hosts.</p>
  
  <p>We are using <a href="https://wiki.jenkins-ci.org/display/JENKINS/Copy+To+Slave+Plugin" rel="noreferrer">Copy to slave</a> plugin to copy files on slave machines and <a href="https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin" rel="noreferrer">Publish over ssh</a> plugin to manage SSH sessions in build process.</p>
  
  <p>Now the question is, We want to copy some files (log files of Scripts) from remote ssh host to Jenkins Server.
  Which will be possible and better option for the same (plugin will be better if any).</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>sshpass is an option, but looking for any plugin or better way to do the job.</p>