title: get files with wget and SFTP
body: <p>Hello guys...</p>
  
  <p>I have a script running every night on a linux server, which intend to get files from another one using wget and ftp protocol. These files are located under a folder that can't be accessed through HTTP.</p>
  
  <p>Here's the command line used : </p>
  
  <pre><code>wget --directory-prefix=localFolder ftp://login:password@adress.ip.of.server/path/*
  </code></pre>
  
  <p>The site access has been changed to SFTP. I would like to modify the script to be able to get the files just as it was doing before, but don't manage to do this with SFTP.</p>
  
  <p>I tried to generate a secure key using ssh-keygen and then copy it to the server I wanted to access, but it didn't make it, or I just don't succeed to find the right way to do it...</p>
  
  <p>Thanks ahead for your help ! :)</p>