A domain name mapping
- Editor vi / etc / hosts
Name and ip address changed flexibly according to their own
The other two virtual machines are also modified.
Second, avoid close Login
- In ~ / input ssh-keygen (no space)
to each virtual machine id_rsa.pub (public key) for (~ / .ssh /) j are centrally stored to a virtual machine (~ / .ssh / authorized_keys) in. as the picture shows.
- Then scp to each virtual machine.
- Verify
ssh host name
if you can log in successfully.