Copy file from local computer to remote via terminal

0

Is there any way to copy a file from a local folder to the remote one through the terminal? Something like ssh ?

    
asked by anonymous 07.10.2015 / 14:19

2 answers

4

Yes, using scp . For your documentation, do the command on the terminal man scp and see more at: link

    
07.10.2015 / 14:41
0

In addition to scp , rsync is an excellent option if the server has SSH service running and rsync as well. It works not only for individual files.

$ rsync /pathlocal/arquivolocal usuario@servidor:/pathremoto/arquivoremoto

A third alternative would be to mount the remote address mapping to a local directory.

    
14.11.2015 / 17:22