Open main menu

CDOT Wiki β

Changes

OPS335 Lab 1

1 byte removed, 15:25, 13 January 2016
no edit summary
You can do this two ways:
<ul><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:<br>'''<source lang="bash">ssh-copy-id -i ~/.ssh/id_rsa.pub username@server</source>'''<br></li></ul>
After that you perform either of those operations, you can login then ssh into a remote vm without a password. But NOTE: Always remember - that these keys are '''per -user, <u>not </u> per machine'''. So this This means that sharing a user's public key will only work with one user on the client and one for that specific user on the server (the two users involved in running the command above).
13,420
edits