How to copy file while Rerun with SSH?

While I use the feature to “Rerun with SSH”, I need to copy some file from container to my laptop. About a year ago, I could use “scp -P <port_number> <ip_address>:<path_to_file> .” from my laptop to get it. But now I cannot do it anymore. Did something change and block this? If so what’s the recommended way?

Try adding your ssh key to the job. Checkout this doc on how to do it

1 Like

I used this command moments ago to copy file from SSH job to my local.

If you have integrated ssh with your SSH, then that key should work. No need to add any new key.

scp -vr -P 64535 -i ~/.ssh/id_syn_github circleci@ ~/Documents/circle