cancel
Showing results for 
Search instead for 
Did you mean: 

Importing SSH Keys on iLO 2

Hugo R Hernandez
Occasional Visitor

Importing SSH Keys on iLO 2

Hello there,
I am trying to import SSH Keys on the iLO2 for a HP Proliant DL360 G6 running RHEL 5.4. I am using the Software Light-Out Management for Linux and when I am running the locfg.pl script I am getting this error message:



STATUS="0x0058"
MESSAGE='There is no user name or the user name appended to SSH key does not exist.'
/>


The way I am running the Perl script is as follow:

root # ./locfg -s iLOserver.mydomain.com -f Import_SSH_Key.xml

I have generated locally on a Linux box the SSH key by using ssh-keygen (rsa) for the same user account I have defined on the iLO2. Of course, I have included the correct USER_LOGIN and PASSWORD on the xml file. USER_LOGIN matchs for both, OS and iLO2 user accounts.

Any help will be really appreciated!

Thanks in advance,
-Hugo
3 REPLIES
Jimmy Vance
HPE Pro

Re: Importing SSH Keys on iLO 2

What does the XML your sending to the iLO look like?



__________________________________________________
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

Re: Importing SSH Keys on iLO 2

THis thread may help

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1287110




__________________________________________________
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!   
Hugo R Hernandez
Occasional Visitor

Re: Importing SSH Keys on iLO 2

Jimmy,
here is the content of my xml file:






-----BEGIN SSH KEY-----
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAxNp/sik17rWU/wB19/5urhFTaPbiZ7M7NvlWo+Aqc+GPxVAvrW3ye2mIDfUbCpmKgTr4EVFqzDsKgW1+7Ub2UFKiim9LNWhLucmC5NgIYtfxZ6a44gmZgLDkq6Rx4ZrAW7Mg12uY277pkm7rOG7ol4TWDtHhC2sB800jc/DXWr8O8xU3Sl/DJwu/V6BcPkAHLSawGv7Jsjn9FZtjtSMpgk9Km2AOSuuisEy69t0yX04ejmL6aXOF73sC6pIHCDHryimLvfr1DWD0k6I74nBtDTlsmWEZ6/WZKu3scVEyWLeC4oqFHzCAI5+TEeH9wvNkIK7H2k2nlmkpobHGLSj/Gw== linux_account
-----END SSH KEY-----





Of course, linux_account is a valid user account in both the OS and the iLO2 and it has admin privileges on the iLO2 side.

Please, let me know your thoughts.

Thanks,
-Hugo