Skip to content

Commit a19dd4e

Browse files
committed
In my case, FTP works better in passive mode
1 parent 9729c98 commit a19dd4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getssl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
527527
fi
528528
elif [[ "${to:0:4}" == "ftp:" ]] ; then
529529
if [[ "$cert" != "challenge token" ]] ; then
530-
error_exit "ftp is not a sercure method for copying certificates or keys"
530+
error_exit "ftp is not a secure method for copying certificates or keys"
531531
fi
532532
debug "using ftp to copy the file from $from"
533533
ftpuser=$(echo "$to"| awk -F: '{print $2}')
@@ -540,7 +540,7 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
540540
fromfile=$(basename "$from")
541541
debug "ftp user=$ftpuser - pass=$ftppass - host=$ftphost dir=$ftpdirn file=$ftpfile"
542542
debug "from dir=$fromdir file=$fromfile"
543-
ftp -n <<- _EOF
543+
ftp -p -n <<- _EOF
544544
open $ftphost
545545
user $ftpuser $ftppass
546546
cd $ftpdirn

0 commit comments

Comments
 (0)