use scp command linux example
Example 1: using scp
scp remote_username@10.10.0.2:/remote/file.txt /local/directory
Example 2: scp use
sudo scp -i "key.pem" file.txt ubuntu@10.10.0.2:myfolder/
scp remote_username@10.10.0.2:/remote/file.txt /local/directory
sudo scp -i "key.pem" file.txt ubuntu@10.10.0.2:myfolder/