Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Server Management - Remote Server Management
cancel
Showing results for 
Search instead for 
Did you mean: 

ILO2 SSH Key using RIBCL

SOLVED
Go to solution
Peter_Vreman
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
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 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
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 Contributor

Re: ILO2 SSH Key using RIBCL

See reply above