Dear CMS team,
I am trying to create an SSH key-pair (id_rsa) following the steps outlined in https://source.geography.bristol.ac.uk/wiki/UsingSSH#Using_SSH_Key-Pairs for submitting the Unified Model from PUMA to BEAR HPC in the University of Birmingham. However, I had an issue while executing the following command:
scp ~/.ssh/id_rsa.pub duttadz@bluebear.bham.ac.uk:.ssh/from-host.pub
The error message I received:
Permission denied (publickey).
lost connection
I reached out to the BEAR support team, and they suggested manually adding the key to the .ssh folder on BEAR.
After copy-pasting the public key into BEAR, I tried to log in using “ssh duttadz@bluebear.bham.ac.uk” from PUMA. However, I received an “Authentication failed” message.
Is there anything specific that I might have missed?
Please let me know.
Thank you,
Deepashree
Hi Deepashree,
You need to tell ssh which key to use; try:
ssh -i ~/.ssh/id_rsa duttadz@bluebear.bham.ac.uk
Cheers,
Ros.
Hi Ros,
Thank you so much.
I’m relatively new to these supercomputers and I mistakenly deleted the keys in my laptop that were linked to my PUMA account, instead of deleting the keys on BEAR. I was trying to start over the whole process in an attempt to pair PUMA and BEAR.
I’m so sorry for the inconvenience. Is there a way to recover those keys so that I can access my PUMA account?
Please let me know.
Thank you,
Deepashree
Hi Deepashree,
If you backup your laptop you should be able to recover the PUMA access keys from there. Otherwise you will need to regenerate them and send the new .pub to Andy Heaps as per the instructions he sent you when you first got access to PUMA.
Regards,
Ros.
Hi Ros,
Thank you so much.
I tried the following as you suggested:
ssh -i ~/.ssh/id_rsa duttadz@bluebear.bham.ac.uk
But I still received “Authentication failed” message.
Please let me know what I should do.
Thank you.
Deepashree
Hi Deepashree,
You will need to contact BEAR support. The rejection message is coming from their machine. All I can say is that everything looks ok with your ssh keys on PUMA.
Regards,
Ros.
Hi Deepashree,
You’ll need to contact the bluebear help desk for this as the issue lies with their system and not with PUMA. The “Authentication failed” message comes from the bluebear system when you try to login to it. Usually you would copy your PUMA ~/.ssh/id_rsa.pub file to the bluebear ~/.ssh/authorized_keys file but the details will need to be provided by the bluebear support team.
Cheers
Andy
Hi Andy,
Thank you so much for the clarification.
I copy-pasted the .pub file to bluebear ~/.ssh/authorized_keys, but I keep receiving the same error.
I’ll contact the bluebear support team again.
Deepashree