4
Move a le into an EC2 instance
To move a le (for example, a le to be processed) from your computer to your EC2 instance Home directory of user
ubuntu using Secure Copy Protocol (SCP), type the commands below in the terminal window of your Mac. Words
surrounded by <> indicate optional input.
Type:
1.
2.
3.
Move a le out of an EC2 instance
To move a le (for example a processing product) from your EC2 instance ubuntu directory to your computer using
SCP, type the commands below in your Mac terminal.
To move le S1A_EW_GRDM.zip from your computer to your EC2 instance, follow the steps below. Words
surrounded by <> indicate optional input.
1.
2.
3.
If you store your .pem le in a directory other than the directory you are working in, you must provide a path to that
directory in the SSH command.
Example
If you Stop your instance using the EC2 Management Console (Action > Instance State > Stop), when you restart it you
will be assigned a new Public DNS. Use this new DNS to reconnect
$ scp -i private.pem your_lename ubuntu@EC2instance_public_DNS:/home/ubuntu/
2.compute.amazonaws.com:/home/ubuntu/
$ scp -i pemle.pem your_lename ubuntu@Public_DNS:/<path>/
$ scp -i pemle.pem ubuntu@PublicDNS:/<path>/your_lename ~/<path>/local_directory
$ scp -i private.pem ubuntu@Public_DNS:/home/ubuntu/lename ~/local_folder
F2_unw_phase.tif ~/Downloads