Copy files and directories using SSH/SCP

Posted under » Linux on 24 November 2014

In windows you can use WinSCP. However in linux I prefer using the SCP command.

If you are want to upload

scp /home/you/Downloads/heh.mp3 me@172.50.157.104:/media/me/

If you are want to download

scp youz@myserver.com.sg:/sync/youmama.avi /home/you/Downloads/

If you are want to download a directory use the recursive command

scp -r youz@myserver.com.sg:/sync/youmama /home/you/Downloads/

You will be prompted for password but thats all to it.
 

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css