Skip to content

Instantly share code, notes, and snippets.

@ggorlen
Created April 30, 2021 21:27
Show Gist options
  • Select an option

  • Save ggorlen/5d4eab758d5a7421f4af5b1df815fc24 to your computer and use it in GitHub Desktop.

Select an option

Save ggorlen/5d4eab758d5a7421f4af5b1df815fc24 to your computer and use it in GitHub Desktop.
How to SSH into CS6340's Virtual Box

Setup:

  1. Download the course .ova file and import it into the VirtualBox manager with File -> Import Appliance.
  2. Follow this tutorial: https://stackoverflow.com/questions/5906441/how-to-ssh-to-a-virtualbox-guest-externally-through-a-host to configure port forwarding on the VM. This is the critical resource!

On the VM:

  1. Start the VM in the VirtualBox manager.
  2. Run sudo apt install sshd. It will automatically start.
  3. I had to create RSA keys with ssh-keygen
  4. Run sudo service ssh restart.

On the host machine:

  1. Wait awhile for the VM to boot up.

  2. When starting VM, Windows security alert pops up, click allow on private network.

  3. Run ssh -p 3022 cs6340@127.0.1.1 -vvv.

     username: cs6340
     password: student
    

Connection troubleshooting references:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment