Copy local computer file to remote via terminal

Asked

Viewed 1,163 times

0

Is there any way to copy a file from a local folder to a remote, via the terminal? Something like the command ssh?

2 answers

4

0

Beyond the scp, rsync is an excellent option if the server has the SSH service running and rsync also. 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.

Browser other questions tagged

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