mac terminal scp download upload files from a remote server

First, download the file

scp -P port number [email protected]: /root/lnmp0.4.tar.gz /home/lnmp0.4.tar.gz

 Second, download the entire catalog file

scp -P port number -r [email protected]: /root/lnmp0.4/ /home/lnmp0.4/

 Third, upload files

scp -P port number /home/lnmp0.4.tar.gz [email protected]: /root/lnmp0.4.tar.gz

 Fourth, upload the entire file directory

scp -P port number /home/lnmp0.4.tar.gz [email protected]: /root/lnmp0.4.tar.gz

Fifth, several parameters related to the introduction:
-v and most linux command -v means the same as for display can be used to view the progress of connection, authentication, or configuration errors.

-C Enable compression option.

-4 forced to use IPV4 address.

-6 forced to use IPV6 address.

Guess you like

Origin www.cnblogs.com/Miracle1/p/12055354.html