xxxxxxxxxx
scp [OPTION] [[user@]SRC_HOST:]file1 [[user@]DEST_HOST:]file2
xxxxxxxxxx
scp -r -p chemin/vers/dossier/source user@serveur2:chemin/vers/dossier/destination
Use SCP Command to Securely Transfer Files from local to remote
xxxxxxxxxx
#syntax: scp copyPath pastePath
scp localMachine/copyfile.txt userName@255.255.255.0:Folder/pasteFile.txt # Local-to-Remote
scp userName@255.255.255.0:Folder/copyFile.txt localMachine/pasteFile.txt # Remote-to-Local
xxxxxxxxxx
# To scp a file to the Desktop directory within your home directory type:
scp -P 2500 file_name.txt ece373@localhost:Desktop/
# To scp a file from your VM to your desktop type:
scp -P 2500 ece373@localhost:Desktop/file_name.txt file_name.txt
xxxxxxxxxx
scp [options] username1@source_host:directory1/filename1 username2@destination_host:directory2/filename2