Linux

Transferring files with SCP

Copy files between systems through ssh using scp command line tool.

Upload file

scp local_filename username@hostname:/path/to/filename

Download file

scp username@hostname:/path/to/filename local_filename

 

Upload directory

scp -r local_directoryname username@hostname:/path/to/directoryname

Download directory

scp -r username@hostname:/path/to/directoryname local_directoryname