Copy file from Elastic beanstalk to local machine
amazon-elastic-beanstalk
Solution
To figure out what IP address and keyfile to use with `scp`, you can run `eb ssh my-env-name` and pay attention to the first few lines of output:
INFO: SSH port 22 open.
INFO: Running ssh -i /Users/MyHome/.ssh/eb.pem ec2-user@<eb-env-ip-address>
Then, we can use these details for the actual `scp` command (replacing `ssh` with `scp` and adding file paths):
scp -i /Users/MyHome/.ssh/eb.pem ec2-user@<eb-env-ip-address>:/path/to/file .
Problem
I have connected to Elastic Beanstalk using: eb ssh XXXXXX --profile=xx Now I want to copy a file to my local machine, how do I do that?