Just a reminder: scp (server copy) command.

  • Just a reminder: scp (server copy) command always run from the local environment.
  1. Copying from local to server : sudo scp -i example.pem <source> ubuntu@<ip address OR instance location>:<destination>

  2. Copying from server to local : sudo scp -i example.pem ubuntu@<ip address OR instance location>:<source> <destination>