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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s