Advertisement
Guest User

Untitled

a guest
Jun 19th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. scp user@10.3.0.1:/path/to/file user@10.3.0.2/path/to/file
  2.  
  3. scp user1@remote1:/home/user1/file1.txt user2@remote2:/home/user2/file1.txt
  4.  
  5. scp -3 user1@remote1:/home/user1/file1.txt user2@remote:/home/user2/file1.txt
  6.  
  7. Host remote1.example.org
  8. Port 2222
  9. IdentityFile /path/to/host1-id_rsa
  10.  
  11. Host remote2.example.org
  12. Port 6969
  13. IdentityFile /path/to/host2-id_rsa
  14.  
  15. ssh -p port_on_machine1 user@machine1 "cat /path/to/file/one"|ssh -p port_on_machine2 user@machine2 "cat >/path/to/file/two"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement