si possible, installer ftp-upload
ftp-upload -h {HOST} -u {USERNAME} --password {PASSWORD} -d {SERVER_DIRECTORY} {FILE_TO_UPLOAD}
ou avec curl:
curl -T my-local-file.txt
ftp://ftp.example.com --user user:secret
sinon:
$ ftp -n <<EOF
open ftp.example.com
user user secret
put my-local-file.txt
EOF
ou encore:
ftp -u
ftp://user:secret@ftp.example.com/my-local-file.txt my-local-file.txt