HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
BladeSystem - General
cancel
Showing results for 
Search instead for 
Did you mean: 

OA Administrator 'ADD SSHKEY'

 
SOLVED
Go to solution
Adam Garsha
Valued Contributor

OA Administrator 'ADD SSHKEY'

I am trying to add an ssh key via the OA cli for the Administrator account.

When I try to add the key in an interactive session I get:

"This command is only available in script mode."

When I try to run it remotely via an ssh command callout, I get:

"Secure Shell authorized key file replaced."

Which looks promissing but when I try to use it, no dice. Further, when I try to show it for the Administrator account I see:

"There is no SSH key installed."

What gives? Is there a special key type or format required (e.g. openssh vs. ???)

I am trying to use a public openssh style key that works well against unix systems.
5 REPLIES
Raghuarch
Honored Contributor

Re: OA Administrator 'ADD SSHKEY'

The key file must contain the Administrator name at the end of the public key. Each key is associated with the Administrator (Inbuilt)account.

If you try with User with Admin Privilege it doesn't work.

Adam Garsha
Valued Contributor

Re: OA Administrator 'ADD SSHKEY'

Right, I am using Administrator account and I tried putting "Administrator" at the end of the key.
Raghuarch
Honored Contributor
Solution

Re: OA Administrator 'ADD SSHKEY'

I tried to upload using Putty Key Generator:
below is the link.
http://www.ecora.com/ecora/support/putty/putty.asp

I did it from th OA GUI. It worked fine.

IS there a special key type or format required?
I don't know. I tried SSH-2 RSA format.
Adam Garsha
Valued Contributor

Re: OA Administrator 'ADD SSHKEY'

Oops I applied points too fast. Where in OA Gui can you put in an ssh key. I see certificate, but ssh public key doesn't work there.
Raghuarch
Honored Contributor

Re: OA Administrator 'ADD SSHKEY'

Login to OA GUI. in the left side you see Systems and Devices.
Under Enclosure Information Click on Users/Authentication and Select SSH Administration.
Add the key in Authorized SSH Keys.

Refer to the attachment.