How can I send a file from my local machine to the remote server using lftp
?
How can I send a file from my local machine to the remote server using lftp
?
To send a file to the remote server, first run lftp
lftp
the lftp
prompt will open
lftp :~>
You can now connect to the remote server
lftp :~> open -u "usuario","senha" host;
the console will inform you which server you are connected to
lftp user@host:~>
To send the file run the following command
lftp user@host:~> put -O pasta/de/destino /caminho/local/ate/arquivo.zip;
After the submission is complete, run the command bye
to close the lftp
prompt
lftp user@host:~> bye;
the .zip file will now be in the destination folder on the remote server.
I performed this example using Ubuntu 16.