Changes

Jump to: navigation, search

OPS335 Lab 1

365 bytes added, 09:16, 16 September 2016
no edit summary
You can transfer the public key to a remote server using either of the following methods:
<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/note|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.}}
13,420
edits

Navigation menu