How to make a file upload using lftp? [closed]

-2

How can I send a file from my local machine to the remote server using lftp ?

    
asked by anonymous 27.03.2017 / 19:59

1 answer

0

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.

    
27.03.2017 / 19:59