23.10.2014 Views

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Enter passphrase (empty for no passphrase):<br />

Enter same passphrase again:<br />

Your identificati<strong>on</strong> has been saved in /.ssh/id_rsa.<br />

Your public key has been saved in /.ssh/id_rsa.pub.<br />

The key fingerprint is:<br />

20:f5:d9:49:13:d7:2d:df:14:8c:a3:f6:ac:5e:d7:17 root@plmserver<br />

The ssh-keygen command creates a .ssh directory in the home directory. The<br />

c<strong>on</strong>tents of the directory are the following:<br />

# ls -l .ssh<br />

total 40<br />

-rw------- 1 root system 883 Aug 7 21:59 id_rsa<br />

-rw-r--r-- 1 root system 227 Aug 7 21:59 id_rsa.pub<br />

The file id_rsa.pub c<strong>on</strong>tains the SSH public key.<br />

Note: For str<strong>on</strong>ger security, we recommend that you use DSA as the<br />

encrypti<strong>on</strong> algorithm. This can be accomplished by using the switch -t dsa<br />

instead of -t rsa with the ssh-keygen command. The resulting private and<br />

public key files will be called id_dsa and id_dsa.pub respectively.<br />

3. Add the SSH public key to the HMC.<br />

Important: Because the HMC may already have public keys from other<br />

partiti<strong>on</strong>s we must append our key to the HMC’s existing public key list<br />

rather then just copy it.<br />

a. Copy the HMC public key list to the PLM server; answer yes to the prompt:<br />

$ scp hscroot@590hmc:.ssh/authorized_keys2 ~/.ssh/hmc_authorized_keys2<br />

The authenticity of host '590hmc (192.168.255.69)' can't be established.<br />

RSA key fingerprint is 29:4b:1b:eb:1e:30:b6:da:ed:26:c7:0d:f6:2e:19:9a.<br />

Are you sure you want to c<strong>on</strong>tinue c<strong>on</strong>necting (yes/no)?yes<br />

Warning: Permanently added '590hmc,192.168.255.69' (RSA) to the list of known<br />

hosts.<br />

hscroot@590hmc's password:<br />

authorized_keys2 100% 0 0.0KB/s 00:00<br />

This command creates a known_hosts file in the .ssh directory:<br />

$ ls -l .ssh<br />

total 4<br />

-rw-r--r-- 1 root system 0 Aug 09 22:07 hmc_authorized_keys2<br />

-rw------- 1 root system 883 Aug 09 21:59 id_rsa<br />

-rw-r--r-- 1 root system 227 Aug 09 21:59 id_rsa.pub<br />

-rw-r--r-- 1 root system 225 Aug 09 22:07 known_hosts<br />

In the previous example, the hmc_authorized_keys2 file is empty,<br />

indicating that this is the first key exchange for the HMC.<br />

Chapter 6. Partiti<strong>on</strong> Load Manager 385

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!