How to download and upload content with scp command

Warning message

JQuery Cycle must be installed in order to run the slideshow. Please go to Status Report for instructions.

Primary tabs

To download the file use :
scp username@serveraddress:file_location_from_copy file_location_to_copy
For example :

scp root@1.2.3.4:/root/filename.rar ./downloads/

To upload the file use :
scp -P port_name file_location_to_be_copied_from username@serveraddress:file_location_to_replace_on_server
For example :

 scp -P 222 abc/abc.module UserX@1.2.3.4:/var/www/project/abc.module

Note : Upload command will replace the file from its new content