1. Download files from the server
SCP [Email Protected]:/path/filename/local/path
For example: SCP [email protected]:/ygf/data/data.txt/desktop/ygf to download/ygf/data/data.txt files on 117.50.20.56 to/desktop/ In the YGF directory
2. Uploading local files to the server
scp/local/path/local_filename [Email Protected]:/path
For example: scp/ygf/learning/deeplearning.doc [email protected]:/ygf/learning /ygf/learning/the Machine The Deeplearning.doc file in the directory is uploaded to the/ygf/learning directory on this server 117.50.20.56
3. Download the entire directory from the server
scp-r [Email Protected]:/path/path
For example: scp-r [email protected]:/home/ygf/data/local/local_dir "-r" command is a folder directory, the current/home/ygf/data directory to download all files to the local/loc In the Al/local_dir directory
4. Upload directory to server
Scp-r/path [Email Protected]:/path
For example: scp-r/ygf/test [email protected]:/ygf/tx "-r" command is a folder directory, the current/ygf/test directory of all files uploaded to the server's/ygf/tx/directory
Use the SCP command to upload downloaded files/folders remotely