Open main menu

CDOT Wiki β

Changes

OPS535-vl-lab-nfs

1,542 bytes added, 21:55, 30 May 2021
Investigation 2: Control Workstation Configuration
==Investigation 2: Control Workstation Configuration==
Perform ===Background===You will configure VM1 as the control workstation for performing remote administration task on your VM2 - VM4. The prefer method is to configure your control workstation to use ssh key-based authentication when connecting to your VM2 - VM4 remotely. If you are planning in using ansible to perform remote configuration, you need to set up the inventory file for ansible. === Task 1 : Configure ssh key-based authentication on VM1 ===* login to your VM 1 as 'student'.* add the following IP address to hostname/FQDN mapping to the /etc/hosts file:<pre>192.168.xx.1 router router.<your dns domain>192.168.xx.2 pri-dns pri-dns.<your dns domain>192.168.xx.3 co-nfs co-nfs.<your dns domain>192.168.xx.4 rns-ldap rns-ldap.<your dns domain></pre>* run the 'ssh-keygen' to generate the public-private key pair for key-based authentication* run the following steps on commands to copy to public key to VM2 - VM4.:* for VM2<pre>ssh-copy-id -i ~/.ssh/id_rsa.pub student@pri-dns</pre>:* for VM3<pre>ssh-copy-id -i ~/.ssh/id_rsa.pub student@co-rns</pre>:* for VM4<pre>ssh-copy-id -i ~/.ssh/id_rsa.pub student@rns-ldap</pre>* verify and confirm that you can ssh to your VM2, VM3, and VM4 as 'student' with using password. === Task 2: Configure ansible's inventory file ===* login to your VM1 (route) as root'student'* Add the following information to the end of /etc/ansible/hosts:<pre>[your dns domain]pri-dns.<your dns domain> ansible_host=192.168.xx.2co-nfs.<your dns domain> ansible_host=192.168.xx.3rns-ldap.<your dns domain> ansible_host=192.168.xx.4</pre>
==Investigation 3: Scripts for remote administrations==
1,760
edits