Configuring the SSH User Private Key
Operation Scenario
Configure the SSH private key.
After the SSH private key has been loaded on the user client and the iBMC, the user can log in to the iBMC CLI over SSH without entering a password. This access mode is recommended due to higher security and easier operation.
Prerequisites
Conditions
- The client (local PC) can communicate with the server iBMC.
- The SSH interface has been enabled on the iBMC.
Data
- SSH public key type: RSA or DSA
- IP address of the iBMC management network port
- SSH service port number
Software
- A free tool, such as putty.exe, to log in to the iBMC
- A free tool, such as puttygen.exe, to generate private keys
Procedure
- On the client (such as a PC), run puttygen.exe.
The PuTTY Key Generator window is displayed, as shown in Figure 6-26.
- In the Parameters area, select the private key type, for example SSH-2 DSA.
- Set the private key size.
- Click Generate.
- Click Save public key and Save private key to save the generated public and private keys to the client.
- Import the public key to the iBMC.
- Log in to the iBMC WebUI. For details, see .
- On the iBMC WebUI, choose User & Security > Local Users.
- Locate the user for which the SSH public key is to be imported, and click
to the left of the user name.
- Click Upload next to SSH Public Key.
The dialog box shown in Figure 6-27 is displayed.
- Select the import mode.
Select Public key file or Public key text.
- Click
to select the public key.
- Enter current password.
- Click OK.
For security purposes, periodically update the NTP group key.
- The public key is imported.
- Click Browse and select the public key generated in Generate an SSH private.....
- Click Save.
- Configure the SSH client.
- On the PC, run putty.exe.
- Import the private key generated in•Generate an SSH private....
Generate an SSH private... shows the interface for importing a private key.
Figure 6-28 Importing a private key - Set the user login information.
Enter the iBMC address and SSH port number, as shown in Figure 6-29.
- Log in to the iBMC CLI.
- Click Open.
- Enter the SSH user name.
The iBMC CLI is displayed.