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

ILO2 SSH Key using RIBCL

SOLVED
Go to solution
Highlighted
Peter_Vreman
Occasional Advisor

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
Jimmy Vance
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!   
Jimmy Vance
HPE Pro
Solution

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!   
Peter_Vreman
Occasional Advisor

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
Jimmy Vance
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!   
Peter_Vreman
Occasional Advisor

Re: ILO2 SSH Key using RIBCL

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