How to upload a file using lftp?

Asked

Viewed 510 times

-2

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

  • http://linoxide.com/linux-how-to/setup-lftp-command-line-ftp/

1 answer

0


To send a file to the remote server, first run the lftp

lftp

the prompt of lftp will open

lftp :~>

now it is possible to connect to the remote server

lftp :~>  open -u "usuario","senha" host;

the console will tell you which server you are connected to

lftp user@host:~>

to send the file execute the following command

lftp user@host:~> put -O pasta/de/destino /caminho/local/ate/arquivo.zip;

after completion of sending, execute the command bye to close the prompt lftp

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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.