Guest User

Untitled

a guest
Oct 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $ scp file server:
  2. _____ _____ _____
  3. $
  4.  
  5. $ ssh server
  6.  
  7. tar czf - ./* | ssh jf@otherserver.com tar xzf - -C ~/saved_tree
  8.  
  9. ssh jf@otherserver.com "tar czf - ~/saved_tree" | tar xzvf - -C ./
  10.  
  11. scp test.txt username@remoteserver.com
  12.  
  13. scp /path/to/local/file yourremoteusername@servername.com:/path/to/remote/directory
  14.  
  15. scp yourremoteusername@servername.com:/path/to/remote/file /path/to/local/directory
  16.  
  17. scp ~/Desktop/myfile.txt john_doe@10.1.1.10:~/
  18.  
  19. scp ~/Documents/working/index.html john_doe@johndoe.com:/var/www/index.html
  20.  
  21. scp -o "StrictHostKeyChecking no"
  22.  
  23. scp -B
  24.  
  25. Host example.com
  26. AgentForward yes
Add Comment
Please, Sign In to add comment