Help with SSH

We’ve encountered some issues when working with Vagrant on certain computers. In order to run scripts on our virtual machine, we need to “tunnel in” to the machine using a protocol called SSH. However, some computers don’t come with SSH, or have firewalls preventing us from using it.

We can get around this problem by running commands from the interface for VirtualBox, which is a program that you installed earlier in this process. To find the VirtualBox program on a Mac use the Spotlight search tool. To find VirtualBox on a PC, search for “VirtualBox” from your Start menu.

Once you’ve opened VirtualBox, you’ll see icons representing your various virtual machines. Click on medicalHeritageVM_default. If the icon reads “Powered Off,” select Machine from the VirtualBox menu, and then click Start. The icon should now display a message that reads Running.

Once your VM is running, go to VirtualBox’s menu and click Machine and then Show. A window should pop up that looks a lot like your terminal.

From the VirtualBox interface, click on Machine and then Show to launch an interactive shell. (Ignore my extra VMs!)

Once you click into this window, you’ll be inside the virtual machine! Now you need to log in, using the following credentials.

Login:

vagrant

Password:

vagrant

Once you see:

vagrant@vagrant-ubuntu-wily-64:~$

…you’re good to go! You’ll be able to follow along for the rest of the workshop.

One important note: When you click into the window, your mouse will stop working elsewhere on the screen. In order to get your mouse back and exit the VirtualBox command prompt, hold down the command key and click your mouse.

One thought on “Help with SSH

Leave a Reply

Your email address will not be published. Required fields are marked *