Copying files - Pull from PUMA2

I am in the process of transferring my files from pumatest to puma2.

When typing (from BAS machines) the following command scp ~/.ssh/id_rsa_puma* @login.archer2.ac.uk:/home/n02/n02-puma//.ssh

I am getting the error message “Permission denied (publickey).”

I have been able to access archer2 and puma2. To access Archer2 I have to use the following command

ssh -AX -i ~/.shh/id_rsa_safe irealm37@login.archer2.ac.uk

Any tips on this will be very helpful.
Many thanks,
Irene.

Hi Irene,

If you usually specify -i ~/.ssh/id_rsa_safe key when you run ssh to ARCHER2 then you need to do the same when you use scp.

Regards,
Ros.