Open main menu

CDOT Wiki β

Changes

OPS335 Lab 1

10 bytes added, 09:26, 16 September 2016
no edit summary
<ul><li>You are going to share the public key from the root user in your hostname with the root user of your vm1.</li><li>Make certain you are logged on as '''root'''.</li><li>Copy contents of your '''~/.ssh/id_rsa.pub''' from your host machine, and append the contents to '''~/.ssh/authorized_keys''' on each of your Virtual Machine servers</li><li>Simply issue the Linux command '''ssh-copy-id -i ~/.ssh/id_rsa.pub username@server'''<br><br>In your case: ssh-copy-id -i ~/.ssh/id_rsa.pub root@IPADDR_for_vm1</li></ul>
{{Admon/noteimportant|Errors in Copying Public Key from Host to VM|If you experience an error when copying the public key from your hostmachine to your VM, it is most likely caused from not permitting root login that you performed in the previous section. Temporarily set to allow login from root for each vm, restart your sshd service and then re-run the above command.}}
{{Admon/noteimportant|Rsync Needs to be Installed on ALL VMs |Since you select minimum install on your VMs, the rsync command was not installed by default. You need the rsync command to be available on your host machine and all of your VMs. Make certain that the '''rsync''' command is installed on all your vms. }}
13,420
edits