System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

 

Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

Hi,
Can i do a password less login using SSH , to an ILO IP of a HP BL465C server ( O.S = Linux )?

My requirement is to power off/on HP BL465C server ( O.S = Linux) , using SSH and without further entering password , to proceed further.. , from a different server...

NOTE : i'm able to login to the server, using SSH .. without password .

Following is the command i'm trying .. to power off/on a server , from another server.
--------------
Node1 # ssh admin@ILO power off.

7 REPLIES 7
Modris Bremze
Esteemed Contributor

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

The OS level SSH server has nothing to do with iLO's SSH access.

For password-less login, you could try iLO2 web UI->Administration->Security->SSH key. There are some limitations, see context help on the same page.

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

Thanks for the reply..

is there any CLI option to get the solution ?
Modris Bremze
Esteemed Contributor

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

Take a look at Oemhp_LoadSSHKey command (help Oemhp_LoadSSHKey).
Jimmy Vance
HPE Pro

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

For a passwordless ssh login you will need to add an ssh key to iLO2, The users guide talks about it

http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c00553302/c00553302.pdf

Another option is to use the locfg.pl perl script to send XML directly to iLO2. The scripting sample package has the XML to control server power

HP Lights-Out XML PERL Scripting Sample for Linux

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&swItem=MTX-9ded60bd746942e18651211f51&jumpid=reg_R1002_USEN
No support by private messages. Please ask the forum! Accept or KudoI work for HPE
Hugo R Hernandez
Occasional Visitor

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

There is a way to get 'better' documentation by including examples for usage of locfg.pl on Linux? I am trying to use it on a HP Proliant DL360 G6 running RHEL 5.4 without any luck.
Jimmy Vance
HPE Pro

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

The link I provided to the perl samples includes at least 80 XML files for iLO. what are you having issues with?
No support by private messages. Please ask the forum! Accept or KudoI work for HPE
Hugo R Hernandez
Occasional Visitor

Re: Password less SSH login through ILO of HP BL465C server ( O.S = Linux )

Thanks for your quickly answer!

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

P.S. I just started a thread for this issue:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1283955616603+28353475&threadId=1446984