Red Hat SATELLITE 5.1.0 RELEASE NOTES Manual de instalación Pagina 134

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 268
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 133
116 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
Set the NFS server to start at boot time and for this session.
# chkconfig nfs on
# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
You could test mounting the directories locally if you choose to.
7.2.10 Configuring SSH keys
SSH sessions are typically authenticated using passwords typed in from the keyboard. With
SSH
key-based authentications, sessions can be authenticated using public and private keys
so that no password is needed. To accomplish this, the following must be true:
򐂰 The SSH server must have the client’s public key.
򐂰 The SSH client must send its private key.
򐂰 The keys must match.
SSH key-based authentication can be set up from the controller (client) to the virtual servers.
If the master image has a copy of controller’s public key in the file /etc/ssh/authorized_keys,
and the controller has a symbolic link to its private key in the file /root/.ssh/id_dsa, then
key-based authentication will work to the cloned virtual servers.
Create a new DSA key in the directory /etc/ssh/:
# cd /etc/ssh
# ssh-keygen -t dsa -P "" -f id_dsa
Generating public/private dsa key pair.
Your identification has been saved in id_dsa.
Your public key has been saved in id_dsa.pub.
The key fingerprint is:
c1:98:6e:c1:48:52:80:56:98:be:67:aa:1d:d5:76:95 [email protected]
This creates a key pair where the file with the .pub suffix is the public key, and the other file is
the private key. Note that the private key is only readable by root:
# ls -l id_dsa*
-rw------- 1 root root 668 Dec 22 13:47 id_dsa
-rw-r--r-- 1 root root 615 Dec 22 13:47 id_dsa.pub
We copy these files to the golden image in 8.2.8, “Configuring SSH keys” on page 127.
Make a symbolic link to the private key, id_dsa, in the new directory /root/.ssh/:
# mkdir /root/.ssh
# chmod 700 /root/.ssh
# cd /root/.ssh
# ln -s /etc/ssh/id_dsa
7.2.11 Inserting the vmcp module
To issue CP commands, the vmcp module is needed. By default, it is not loaded at boot time.
One way to load this module at boot time is to add the modprobe vmcp command, which will
insert the module, to the file /etc/rc.d/rc.local which is run at boot time:
# cd /etc/rc.d
# vi rc.local // add one line
Vista de pagina 133
1 2 ... 129 130 131 132 133 134 135 136 137 138 139 ... 267 268

Comentarios a estos manuales

Sin comentarios