0

Tryed to copy log file locally using scp.

scp [email protected]:var/log/payment.log /var/www/some-folder/payment.log

Result:

Could not create directory '/app/.ssh'.
Warning: Permanently added 'ssh.ap-3.magento.cloud,52.65.30.37' (RSA) to the list of known hosts.
Permission denied (publickey).

magento-cloud repo:cat command returns only files from git.

Is there a way to copy a file locally from the cloud using console?

UPD:

At the moment, the problem is not observed.

2
  • Do you run scp command on server or localy?
    – KAndy
    Nov 4, 2019 at 23:48
  • @KAndy, yes. From cloud to local.
    – orthener
    Nov 5, 2019 at 7:50

3 Answers 3

4

Use magento-cloud scp tool:

magento-cloud scp remote:var/log/fileToCopy .

For more information magento-cloud scp --help

0

Use rsync instead of scp. This command copies file from a remote server to local machine:

rsync [email protected]:var/log/payment.log /var/www/some-folder/payment.log
0

Run this below command & it will copy all files under var/log into your current directory from where your run this command

magento-cloud scp remote:var/log/* .

After Running this commands:

  1. Select the Project
  2. Choose Environment to Copy files from.

Attached screenshot

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.