Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Installationshandbuch Seite 172

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 296
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 171
152 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
8.2.7 Configuring SSH keys
Recall that you generated SSH keys on the cloner in 7.2.8, “Configuring SSH keys” on
page 133. Now it is time to copy these keys from the cloner to the golden image.
Perform the following steps:
1. Create a new directory (if one does not already exist) on the golden image where the
public key will be copied:
# cd /root
# mkdir .ssh
2. Set the permissions to 700 so that it can only be accessed by root:
# chmod 700 .ssh
3. Copy the public key to the authorized_keys name using the secure copy command (scp):
# scp 9.60.18.223:/etc/ssh/ssh_host_dsa_key.pub /root/.ssh/authorized_keys
The authenticity of host '9.60.18.223 (9.60.18.223)' can't be established.
RSA key fingerprint is c7:d6:3b:8c:20:57:06:fc:8c:71:80:a5:4f:72:47:38.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '9.60.18.223' (RSA) to the list of known hosts.
[email protected]'s password:
ssh_host_dsa_key.pub 100% 590 0.6KB/s 00:00
This action allows the cloner to initiate an encrypted SSH connection to the Linux server
without needing to enter the root password.
8.2.8 Changing the order of the swap disks
It is likely that the order of swap space priority is not optimal. To change this configuration,
perform the following commands:
1. View your order with the swapon -s command:
# swapon -s
Filename Type Size Used
Priority
/dev/dasda2 partition 524296 0 -1
/dev/dasdb1 partition 262132 0 -2
/dev/dasdc1 partition 524276 0 -3
This output shows that the minidisk swap space will be used before the VDISK. As
VDISKs are in-memory, they should be first in the priority, from smallest to largest.
2. Make a backup of the /etc/fstab file:
# cd /etc
# cp fstab fstab.orig
3. Modify the order by moving the line in /etc/fstab in the minidisk swap space below the
lines with VDISK swap spaces:
# vi fstab
...
/dev/disk/by-path/ccw-0.0.0300-part1 swap swap defaults
0 0
/dev/disk/by-path/ccw-0.0.0301-part1 swap swap defaults
0 0
Seitenansicht 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 295 296

Kommentare zu diesen Handbüchern

Keine Kommentare