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

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/transition-to-puma2-question-about-step-7-ssh-agent/1160>\
**Category:** Uncategorized\
**Tags:** ARCHER2\
**Created:** [4 October 2023 11:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/transition-to-puma2-question-about-step-7-ssh-agent/1160 "2023-10-04T11:32:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgrist02](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jgrist02](https://cms-helpdesk.ncas.ac.uk/u/jgrist02)\
**Post date:** [4 October 2023 11:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/transition-to-puma2-question-about-step-7-ssh-agent/1160/1 "2023-10-04T11:32:31Z")

</div>

I am looking to copy ARCHER2 key from my local ([jyg@ssh.noc.soton.ac.uk](mailto: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

---

<div class="post-metadata">

**Author:** ![dcase](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/dcase/32/468_2.png) [@dcase](https://cms-helpdesk.ncas.ac.uk/u/dcase)\
**Post date:** [4 October 2023 12:02 UTC](https://cms-helpdesk.ncas.ac.uk/t/transition-to-puma2-question-about-step-7-ssh-agent/1160/2 "2023-10-04T12:02:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jgrist02](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jgrist02](https://cms-helpdesk.ncas.ac.uk/u/jgrist02)\
**Post date:** [4 October 2023 13:36 UTC](https://cms-helpdesk.ncas.ac.uk/t/transition-to-puma2-question-about-step-7-ssh-agent/1160/3 "2023-10-04T13:36:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dcase](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/dcase/32/468_2.png) [@dcase](https://cms-helpdesk.ncas.ac.uk/u/dcase)\
**Post date:** [4 October 2023 13:51 UTC](https://cms-helpdesk.ncas.ac.uk/t/transition-to-puma2-question-about-step-7-ssh-agent/1160/4 "2023-10-04T13:51:57Z")

</div>

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