Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scp user@10.3.0.1:/path/to/file user@10.3.0.2/path/to/file
- scp user1@remote1:/home/user1/file1.txt user2@remote2:/home/user2/file1.txt
- scp -3 user1@remote1:/home/user1/file1.txt user2@remote:/home/user2/file1.txt
- Host remote1.example.org
- Port 2222
- IdentityFile /path/to/host1-id_rsa
- Host remote2.example.org
- Port 6969
- IdentityFile /path/to/host2-id_rsa
- 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