Transition to Puma2: question about step 7. (ssh agent)

I am looking to copy ARCHER2 key from my local (jyg@ssh.noc.soton.ac.uk) system to puma2 (step 7.i)
but am unsure what I am meant to be copying from my .ssh directory as there is quite a lot in there.

I believe the correct files are there, in that I can log in to archer2 ok (with password).

Could you please advise (contents of my .ssh listed below)

72 jyg@ssh>ls -lrt
total 112
-rw-------. 1 jyg msm 668 Mar 14 2012 id_dsa
-rw-r–r–. 1 jyg msm 394 Mar 14 2012 id_rsa.pub
-rw-------. 1 jyg msm 1675 Mar 14 2012 id_rsa
-rw-r–r–. 1 jyg msm 639 Mar 14 2012 identity.pub
-rw-------. 1 jyg msm 975 Mar 14 2012 identity
-rw-------. 1 jyg msm 602 Mar 14 2012 authorized_keys2
-rw-r–r–. 1 jyg msm 602 Oct 3 2013 id_dsa.pub
-rw-r-----. 1 jyg msm 119 May 20 2020 config
-rw-------. 1 jyg msm 1766 May 20 2020 id_rsa_jasmin
-rw-r-----. 1 jyg msm 405 May 20 2020 id_rsa_jasmin.pub
-rw-------. 1 jyg msm 1766 Jun 21 2022 id_rsa_puma
-rw-r-----. 1 jyg msm 405 Jun 21 2022 id_rsa_puma.pub
-rw-r-----. 1 jyg msm 20412 Mar 1 2023 known_hosts_mar1
-rw-------. 1 jyg msm 2042 Jun 28 10:26 authorized_keys
-rw-r–r–. 1 jyg mpoc 19545 Jul 24 16:33 known_hosts.old
-rw-------. 1 jyg msm 19642 Sep 26 11:53 known_hosts

You can see which key you were using for archer2 by looking on your SAFE account

Alternatively you can narrow down your list by using ssh-add -l on your local computer to see which ones you are currently using, and transfer them all if you’d like to.

Thanks Dave,

I have tried what looks like the one on SAFE account

id_rsa.pub

however, the error message is

[jgrist02@puma2 ~]$ ssh-add ~/.ssh/id_rsa.pub

Error loading key “/home/n02/n02/jgrist02/.ssh/id_rsa.pub”: invalid format

I note the file has == jyg@service0 at the end (unlike in SAFE), should I remove this last bit?

Cheers,

Jeremy

Don’t add the public key, add the key (without .pub)