Azuria

BASH - Secure copy files

Jan 4th, 2012
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #Kopier til host
  2. scp /path/to/file user@remotehost:/path/to/destination
  3.  
  4. #Kopier fra host
  5. scp user@remotehost:/path/to/file /path/to/destination
  6.  
  7. #Benyt komprimering, sparer båndbredde, koster CPU, -r komprimerer
  8. scp -r /path/to/directory/ user@remotehost:/path/to/destination/
  9.  
  10. #Begræns båndbredde til 265kb/s
  11. scp -l 256 /path/to/file user@remotehost:/path/to/destination
Advertisement
Add Comment
Please, Sign In to add comment