December 2018
Beginner
826 pages
22h 54m
English
As with the previous section, confirm that both of your Vagrant boxes are enabled and connect to the first using the vagrant command:
$ vagrant ssh centos1
Ensure you have an SSH key available on centos1. Re-read the previous section on generating an SSH key if you need to:
[vagrant@centos1 ~]$ ls .ssh/authorized_keys config id_ed25519 id_ed25519.pub known_hosts
Copy your key to centos2 if you haven't already, accepting the host key if you need to:
[vagrant@centos1 ~]$ ssh-copy-id 192.168.33.11/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/vagrant/.ssh/id_ed25519.pub"/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed/usr/bin/ssh-copy-id: INFO: ...