Home » linux » SCP command for Copying files from remote linux machine to local machine

SCP command for Copying files from remote linux machine to local machine

Sign up for OpenShift Account

Blog Stats

  • 238,744 hits

My Tweets


I just faced a requirement that I needed to copy a zip file containing logs from a remote server to my local machine for some analysis.
I googled around and found at that you can use scp command to that for you.

scp -r <username of remote machine>:<remote location> <location of local directory>

scp -r shekhar@dev.xebia.com:/home/xebia/application/logs/logs-1-09-2011.zip /home/shekhar/tmp
About these ads

1 Comment

  1. maurizio cucchiara says:

    You also might take a look at rsync cmd, which is also able to run over ssh protocol and furthermore provides a lot of configurable parameters

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 )

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

Follow

Get every new post delivered to your Inbox.

Join 265 other followers

%d bloggers like this: