Creating public and private SSHv2 keys. Fujitsu iRMC S4
Annons
Annons
Local user management for the iRMC S4
4.3.3.1
Creating public and private SSHv2 keys
You can create public and private SSHv2 keys
– with the program PuTTYgen or
– with the OpenSSH client program ssh-keygen.
Creating the public and private SSHv2 keys with PuTTYgen
Proceed as follows:
Ê
Start PuTTYgen on your Windows computer.
The following window appears when PuTTYgen is started:
Figure 15: PuTTYgen: Creating new private and public SSHv2 keys
Ê
Under Parameters, select the key type SSH-2RSA and click Generate to start generation of the keys.
The progress of the generation operation is then displayed under Key (see
).
iRMC S4
67
Local user management for the iRMC S4
Figure 16: PuTTYgen: Creating a new key pair (progress bar).
Ê Move the mouse pointer over the blank area of the progress display to increase the randomness of the generated keys.
When the keys have been generated, PuTTYgen displays the key and the fingerprint of the public SSHv2 key:
Figure 17: PuTTYgen: Creating a new private SSHv2 key (progress bar).
Ê
Click Save public key to save the public SSHv2 key to a file. You can upload the public key to the iRMC from this file (see
).
Ê Click Save private key to save the private SSHv2 key to a file for use with
PuTTY
68
iRMC
Local user management for the iRMC S4
Creating the public and private SSHv2 keys with ssh-keygen
I
If it is not already pre-installed in the Linux distribution you are using, you can obtain OpenSSH from
http://www.openssh.org
.
You will find a detailed description of the operands in the OpenSSH
OpenSSH manual pages under
http://www.openssh.org/manual.html
Proceed as follows:
Ê
Call ssh-keygen to generate an RSA key pair: ssh-keygen -t rsa
ssh-keygen
logs the progress of the key generation operation. ssh-keygen queries the user for the file name under which the private key is to be stored and for the passphrase for the private key. ssh-keygen stores the resulting private and public SSHv2 keys in separate files and displays the fingerprint of the public key.
Example: Generating an RSA key pair with ssh -keygen
1
2
3
4
5 iRMC S4
69
Local user management for the iRMC S4
Explanation:
1. ssh-keygen requests the file name under which the SSHv2 key is to be saved. If you press [Enter] to confirm without entering a file name,
ssh-keygen
uses the default file name id_rsa.
2. ssh-keygen requests you to enter a passphrase (and to confirm it) that is used to encrypt the private key. If you press [Enter] to confirm without entering a passphrase, ssh-keygen does not use a passphrase.
3. ssh-keygen informs the user that the newly generated private SSHv2 key has been saved in the file /.ssh/id_rsa.
4. ssh-keygen informs the user that the newly generated public SSHv2 key has been saved in the file /.ssh/id_rsa.pub.
5. ssh-keygen displays the fingerprint of the public SSHv2 key and the local login to which the public key belongs.
70
iRMC
Ladda ner
Annons