The Open Source Swiss Army Knife

/cryptography/
/cryptography/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /cryptography 
Permalink: /var/sirfsup/cryptography/scp.htm
Title: add
article options : please login   |  print view

scp

  1. one
  2. two

one

local file here to remote there

[marksp@www3 mail]# scp sendmail.mc marksp@sirfsup.com:/home/marksp/
marksp@sirfsup.com's password: 
Permission denied, please try again.
marksp@sirfsup.com's password: 
Connection closed by 64.130.6.101
lost connection

two

remote directory recursively copy to here

note that even if you just copied all files over, it will copy them again, which leaves MUCH to be desired. I then turned an eye to rsync, after needing help with my find script

[marksp@www3 functions]# scp -r marksp@www.remotesite.com:/home/marksp /tmp
marksp@www.remotesite.com's password:
.bash_logout         100% |**************************************************************************|    24       00:00
.bash_profile        100% |**************************************************************************|   191       00:00
.bashrc              100% |**************************************************************************|   124       00:00
.screenrc            100% |**************************************************************************|  3511       00:00
.bash_history        100% |**************************************************************************|  7129       00:00
known_hosts          100% |**************************************************************************|  1129       00:00
.mysql_history       100% |**************************************************************************|  1793       00:00
.my.cnf              100% |**************************************************************************|    84       00:00
mbox                 100% |**************************************************************************| 96186       00:01
scp: /home/marksp/nohup.out: Permission denied
.forward             100% |**************************************************************************|     6       00:00
history              100% |**************************************************************************|   197       00:00
ini                  100% |**************************************************************************|  2768       00:00
Tree                 100% |**************************************************************************|    35       00:00
[marksp@www3 functions]#

Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top