Tryed to copy log file locally using scp.

scp XXXX@ssh.ap-3.magento.cloud:var/log/payment.log /var/www/some-folder/payment.log


Could not create directory '/app/.ssh'.
Warning: Permanently added 'ssh.ap-3.magento.cloud,' (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?


At the moment, the problem is not observed.

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

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

rsync XXXX@ssh.ap-3.magento.cloud:var/log/payment.log /var/www/some-folder/payment.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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