linux scp command to upload and download files

1. Upload files in the folder of the local desktop to a certain directory of the server:

scp -P 22 kaka202004241542.tar.gz [email protected]:/opt

2. The server downloads to the local desktop (under the specified folder)

scp -r [email protected]:/opt/run.sh /Users/nutvideo/Desktop/image

 

Guess you like

Origin blog.csdn.net/jack_bob/article/details/105790938