0

I am trying to automate file copy from one machine to other(lftp). Following manual commands work

$ lftp
$ set ssl:verify-certificate no
$ connect ftps://ip
$ login username
$ it asks for password which i will enter
$ put test_file.csv
$ bye

Entering all these commands will copy file to the destination folder. But when I am writing all these in .sh file, it throws me 521 PROT P required error. These is my test.sh file

lftp -e 'set ssl:verify-certificate no' -u username,'password' ftps://ip << EOF
put test_file.csv
bye

What am i missing here ?

Karanam Krishna
  • 365
  • 2
  • 16

0 Answers0