Linux · January 28, 2016 1

Download/Upload files using SSH

SSH is a really cool protocol to play with files, you can use scp command to upload and download files from server.

Upload file from local to remote server

scp /path/to/local/file user@host:/path/to/remote/file          

Upload file from one server to another

scp user1@host1:/path/to/file user2@host2:/path/to/other/file   

Downloading file from remote server to local system

scp user@host:/path/to/remote/file /path/to/local/file