Connecting to the Grouper Training Environment VM
To start your VM:
Visit the InCommon Training VM manager.
View status to see how many VM hours you have remaining
Start your VM
Enter the number of hours you want the VM to run until it is terminated automatically
You can terminate it manually from the VM manager - https://incommon.org/VM-manager
If it is terminated automatically, it will run for a few more minutes than you specified
Wait a few minutes for it to start
Note the ssh command and password
Note: before connecting to your VM, your workstation must not have an application listening on ports 8443, 8432, or 8389
This is not common, but if you see errors it could be the reason
Connect to the VM using ssh or an SSH client
Most people can open a terminal / powershell
On a Mac, click the search magnifying glass in the upper right and type "terminal". Click on the result
On Windows, search for "powershell". Click on the result
If you are not using the SSH command in terminal / powershell, be sure to port forward:
workstation port 8443 to VM localhost port 8443
workstation port 8432 to VM localhost port 5432
workstation port 8389 to VM localhost port 389
Paste the command from the VM manager into the terminal / powershell, then press <return/enter>
You can then paste your password.
If it does not work, try again and carefully type your password and press <return/enter>.
Note: you will not see the password as you type or paste it.
When it asks if you are sure you want to continue connecting, that is expected, and answer "yes".
This happens the first time you connect to a new SSH host.
Example screen
If the SSH connection hangs:
Maybe your VM is not started yet and you need to wait another minute
Maybe you are connected to a VPN and need to disconnect.
Maybe your VM is stopped. Go the InCommon Training VM manager and check the status
Wait a minute for Grouper to start. If it does not start or you want to reset the state of the VM to the starting state (delete all work), type in the SSH console: gte 101.1.1
Go to the VM jump page: https://localhost:8443 (and accept any SSL security warnings)
If you want to do SQL queries in your Grouper database, have a SQL browser handy for postgres, or install the free DBeaver application
If you want to browse the LDAP database in your Grouper database, have an LDAP browser handy, or install the free Apache Directory Studio application
The virtual machine (VM) is a tool that will allow you to access a secure and private instance of Grouper where you can practice your new skills. Each time you create a VM it will have a different IP address, but you will use the same password. You have VM hours for all of the trainings that you have registered for. You can use hours allotted for any training for any other training or for any other purpose. Once all your total VM hours have been used, you will lose access to the InCommon training VM, though you can run the container locally on your own workstation/server. If the password is not accepted, trying carefully typing it in instead of copy/paste. When a VM is destroyed, all state in the container, database, and LDAP will be lost. You should complete each hands-on lesson that you start while the VM is running or expect to start over when you return. If your workstation terminal/powershell does not have the "ssh" command, then you will need to install that command, or SSH and port-forward with another SSH tool such as Putty, SecureCRT, etc. Keep these instructions handy as you take Grouper trainings so you can start your VM as needed.
Read further if you are having issues connecting to your VM
OpenSSH
OpenSSH provides the command line ssh client found on most UNIX/Linux/Mac systems. This also works in windows powershell.
On Mac, open Finder → Utilties → Terminal
Copy and paste the SSH command from the InCommon Training VM Manager. e.g. (a.b.c.d is your IP address)
$ ssh -L 8443:localhost:8443 -L 8432:localhost:5432 -L 8389:localhost:389 -l student a.b.c.d
If you have Mac/Unix and want to use public key (note: this is not all that useful since when the VM is destroyed, the public key will not be on the server until you upload again)
Windows PuTTY
PuTTY is SSH client/terminal software frequently used on Windows operating systems, but also available on Linux systems. Configuration of connections and tunnels is configured using a GUI. See the screen captures below.
Download putty
Start a session, to the IP address at AWS
Click on SSH, tunnels
Add a port forward for:
L8443 → localhost:8443
L8432 → localhost:5432
L8389 → localhost:389
Windows SecureCRT
This is a windows program that might be on your computer from your work. It is not free. So if you dont have SecureCRT already, putty is preferred (above)
Open SecureCRT
File → Connect in Tab/Tile
Click the plus sign to make a new session (if you havent connected before)