Thu. Nov 7th, 2019

Host your Website

Read and learn

FatCow Plan for $3.15/mo. only

Linux Ubuntu Copy transfer files folders SSH Remote computer scp command

1 min read



Command Syntax
1.Copy files from remote mechine
scp [[email protected]:/source_file_path] [DESTINATION]
ex:
scp [email protected]_ADDRESS:/var/Source/test1.txt /var/Dest

2.Copy files to remote mechine
scp [SOURCE] [[email protected]:/file_path_destination]
ex:
scp /var/Source/test1.txt [email protected]_ADDRESS:/var/Dest

3.Copy folders from remote mechine
scp -r [[email protected]:/source_path] [DESTINATION]
ex:
scp -r [email protected]_ADDRESS:/var/Source/Example1 /var/Dest
copy all files and folders
scp -r [email protected]_ADDRESS:/var/Source/* /var/Dest

4.Copy folders to remote mechine
scp -r [SOURCE] [[email protected]:/destination_path]
ex:
scp -r /var/Source/Example1 [email protected]_ADDRESS:/var/Dest
copy all files and folders
scp -r /var/Source/* [email protected]_ADDRESS:/var/Dest

Copyright © All rights reserved. | Newsphere by AF themes.