[Ruby] [Beginner] How to log in to the virtual environment built with Vagrant

less than 1 minute read

  1. Start the terminal

First comes out as follows

Username $

―― ‥

  1. Move from the current directory This time, there is a “Vagrantfile” in home/MyVagrant/MyCentOS, so move to it.
~$ cd // Return to home directory (check location)
~$ cd MyVagrant
~$ cd Move to MyCentOS //MyCentOS

pc name: MyCentOS user name $ // ← OK if it appears

―― ――

  1. Start the virtual environment and log in
~$ vagrant up
~$ vagrant ssh

After executing these two, login is completed if the following message is displayed!