Because of some security restrictions in our AWS environment I can not use SCP (for whatever reason) therefore I was using SSH to download some certain text files containing logs - the command was like this:
ssh -i '/home/user/.ssh/website-key.pem' ec2-user@ec2-xx-xx-xx-xx.eu-central-1.compute.amazonaws.com "cat /var/www/html/project-name/wp-content/themes/theme/store/log/log_2019-03-25" > /home/user/log/log_2019-03-25
Now the server admins of our companies also have disabled SSH for security reasons and only allow eb ssh. Have tried:
eb ssh project-name "cat /var/www/html/project-name/wp-content/themes/theme/store/log/log_2019-03-25" > /home/user/log/log_2019-03-25
But this does not work. Anybody knows how I can download a file via eb ssh on Amazon AWS?