Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II) Forum
Showing results for 
Search instead for 
Do you mean 

ILO2 SSH Key using RIBCL

SOLVED
Go to Solution
Occasional Contributor

ILO2 SSH Key using RIBCL

In ILO2 1.60 the following enhancement is added :

"Added the ability to install SSH keys using the scripted RIBCL interface"

Can somebody provide an example RIBCL script that contains the commands to install SSH keys?

Thanks,
Peter Vreman
5 REPLIES
HPE Pro

Re: ILO2 SSH Key using RIBCL

Checking on it....



__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
HPE Pro

Re: ILO2 SSH Key using RIBCL

Here is the example XML




-----BEGIN SSH KEY----- ssh-dss AAAAB3NzaC1kc3MAAACBALftnNE12JR8T8XQqyzqc1tt6FLFRXL/di1o0sw== root@localhost.localdomain -----END SSH KEY-----






__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Occasional Contributor

Re: ILO2 SSH Key using RIBCL

Thanks.

I've got it now working. Some additional notes:

- The "-----BEGIN SSH KEY-----" block is required.
- The comment of the key must be a valid ILO2 user. In the example below Administrator. By default a key from a unix user account has the username@domain there. This needs te be replaced.

Below is the code that works from the Onboard Administrator and provisions all available proliant blades.

HPONCFG ALL << EOF




-----BEGIN SSH KEY-----
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA03LKgbEmZjaluIU2uQvQgoFNGmHBwLUmvFw+R98gcjv6SopxOnk3ZYsWCSay/0kh4TRu7Zdj6fxxLHQ3UenH9gjlF7kXhQ+y89SyUrdIyVZ2T0WUC90UuKkIREBO/BlWpMJQbtsziH25N8GvGDjtCOgEQ9GJkMjxR3A0/FQ5FbE= Administrator
-----END SSH KEY-----




EOF
HPE Pro

Re: ILO2 SSH Key using RIBCL

Noted, don't forget to assign points



__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Occasional Contributor

Re: ILO2 SSH Key using RIBCL

See reply above
//Add this to "OnDomLoad" event