william-r
3/8/2019 - 8:00 PM

Copy file thru SSH using SCP

scp /path/to/file/ user_name@ip_address:/path/to/file/on/linux
scp -r /path/to/folder/ user_name@ip_address:/path/to/folder/on/linux
scp username@from_host:file.txt /local/directory/
scp -r username@from_host:/remote/directory/  /local/directory/
scp username@from_host:/remote/directory/file.txt username@to_host:/remote/directory/
scp -l 200 /path/to/folder/ user_name@ip_address:/path/to/folder/on/linux
# 200kbit/sec