Using scp command for secure copying file to remote machine:
1 |
scp <file> <user>@<machine>:<path on remote machine> |
Example:
1 |
scp -i ~/.ssh/myKey.pem ~/file1.txt ubuntu@192.168.0.2:"~/file2.txt" |
Using scp command for secure copying file to remote machine:
1 |
scp <file> <user>@<machine>:<path on remote machine> |
Example:
1 |
scp -i ~/.ssh/myKey.pem ~/file1.txt ubuntu@192.168.0.2:"~/file2.txt" |