Using Tera Term to SSH into a Vagrant VM

Environment

Steps

  1. Download and install VirtualBox (default options are fine).
  2. Download and install Vagrant. Add it to your PATH so you can run VBoxManage from the command prompt.
  3. On 64-bit machines, enable hardware virtualization (VT-x) in the BIOS. Reboot, press F2 (varies by PC), and enable the option.
  4. Grab the commands from the Ubuntu trusty64 box page. I created C:\Vagrant\ubuntu and worked there.
  5. In that directory, run:
vagrant init ubuntu/trusty64
  1. Edit the generated Vagrantfile and uncomment:
config.vm.network "private_network", ip: "192.168.33.10"
  1. Run vagrant up (takes a while).
  2. After it finishes, connect via Tera Term.

Connecting from Tera Term

Install Tera Term with the defaults, launch it, and configure the session as shown below.

connect.png

Click OK and enter the credentials. Defaults are:

userpassword
vagrantvagrant
rootvagrant

auth.png

If you can authenticate, you are in.

login.png

Tera Term tip

You can embed the host and credentials into the shortcut target so it logs in automatically (use with care):

"C:\Program Files (x86)\teraterm\ttermpro.exe" 127.0.0.1:2222 /auth=vagrant /user=vagrant /passwd=vagrant