I am in a Red Hat Linux 7.1 environment.
I am trying to write a curl command that uses explicit tls encryption to send a file or a goup of files to the 'target' server.
I understand Filezilla can do this however I don't want to use Filezilla.
Here is what I have so far that works when encryption at the 'target' is turned off:
$fl = File-name to send to target Server
$usrn = User-name
$pswd = Password
$trgtsvr = Target-server Name/IP
$trgtdir = Target-folder path for Target-server Name/IP
$sntdir = 'Sent' folder on Source Server
$lgfl = Logfile name for std output & error to be dumped into
curl --cacert --ftp-ssl -k -T $fl -u $usrn:$pswd ftp://$trgtsvr:2121$trgtdir &>> $sntdir/$lgfl
Now with this set up, I've had success when encryption is turned off on the target server.
Using the same variables, this is the command I have tried:
curl --tlsv1 -T $fl -u $usrn:$pswd ftp://$trgtsvr:2121$trgtdir &>> $sntdir/$lgfl
And this is the response I'm getting:
curl: (67) Access denied: 530
And I am just baffled as to why.
I am certain that what I am missing is blindingly obvious. So be gentile with me.