Answers Diego. However, if you do not know your elastic IP, you can simply scp use the following command (check the order of the arguments)
scp -i path-to-your-identifier.pem file to copy ubuntu @ public-IP: / required-path
for reference only, here ubuntu is your AWS user, and public-IP somewhat similar to 54.2xx.xxx.xxx, for example. 54.200.100.100 or such (If the order is corrupted: the file name is before the identifier, then you will get a Permission denied (publickey).lost connection )
Also, keep in mind the permissions of the .pem file .. Must be 400 or 600. Not available to everyone. Hope this helps!
Tejas shah
source share