How to use scp in Linux (CentOS 6.4)

scp (secure copy):  secure file transfer between a local host and a remote host, or between two remote hosts.
It’s used very commonly on Linux for file transfers between two servers.  The format of the command is like this:
scp [file_path] [user]@[IP_address]:[destination_file_path]
or
scp [user]@[IP_address]:[target_file_path] [file_path]

For example, let’s say you want to transfer the file at /home/jenny/todolist to the user jack on the server with the IP 192.168.1.111 under the directory /home/jack.  The command will look like this:
scp /home/jenny/todolist jack@192.168.1.111:/home/jack

Advertisements
This entry was posted in Linux Tips. Bookmark the permalink.

4 Responses to How to use scp in Linux (CentOS 6.4)

  1. They don’t have to worry about if they call
    us a n*gger no more. Another disturbing example
    is the ‘Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism
    Act,’ better known aas the Patriot Act, which was
    signed into laww by President George W. Banner Stands Help Keep Prospects at an Un- or Under-manned Stand Banner stands have the obvious advantage of being there, even when the folk from your company are manning the stand, and talking to
    passer-bys.

  2. Howdy! This is kind of off topic but I need some guidance from an established blog.

    Is it hard to set up your own blog? I’m not very techincal but
    I can figure things out pretty quick. I’m thinking
    about creating my own but I’m not sure where
    to begin. Do you have any ideas or suggestions?
    Thanks

  3. Wonderful goods from you, man. I have remember your stuff previous to and you’re simply extremely excellent.
    I really like what you have got here, certainly like
    what you’re stating and the best way through which you assert
    it. You make it entertaining and you still take care of to stay
    it wise. I can not wait to read much more from you.
    This is actually a wonderful site.

  4. I’m truly enjoying the design and layout of your blog. It’s a very easy on the eyes
    which makes it much more enjoyable for me to come here and visit more often. Did you hire out
    a developer to create your theme? Superb work!

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 )

Google+ photo

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

Connecting to %s