Hello guys...
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.
Here's the command line used :
wget --directory-prefix=localFolder ftp://login:[email protected]/path/*
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.
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...
Thanks ahead for your help ! :)
To copy keys, I find that ssh-copy-id user@machine
does all you need. As long as you have a key on your machine that is.
I also use scp
quite a bit, where you specify scp user@machine:filespec whereto
(it is using the same encryption and authentication mechanism as sftp).
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With