Server Management - Remote Server Management
1748157 Members
4034 Online
108758 Solutions
New Discussion юеВ

Re: 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 5
Jimmy Vance
HPE Pro

Re: ILO2 SSH Key using RIBCL

Checking on it....
No support by private messages. Please ask the forum! 
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! 
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! 
Peter_Vreman
Occasional Contributor

Re: ILO2 SSH Key using RIBCL

See reply above