Transfer files using Secure Copy (scp)

October 29, 2008 by V-Teq · 2 Comments
Filed under: Linux Notes 

Transfer file/directory from remote host to localhost:

$ scp [<USER>@]<HOST>:<REMOTE_PATH> <LOCAL_PATH>

Usage example:

$ scp v-teq@v-teq.com:~/.vimrc ~/.vimrc # copy .vimrc file from remote host to the local one
$ scp user@example.com:/etc/resolv.conf /tmp/dns.txt

Transfer file from localhost to remote host:

$ scp <file/directory> user@example.com:~/remote/directory

Transfer file/directory from localhost to remote host:

$ scp file.txt user@example.com:~/remote/directory

Comments

2 Responses to “Transfer files using Secure Copy (scp)”
  1. webkatalog says:

    Were did you get your blog design?

  2. V-Teq says:

    The design is based on Revolution Code Blue and Code Blue (previous version) by B. Gardner – http://www.briangardner.com/themes.
    But as you can see, I modified/personalized these two desings a lot to fit my needs..

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!