def example_01(pem_file_path, remote_user, machine_address):

    cmd = "ssh -i {pem_file_path} {remote_user}@{machine_address}".format(
        pem_file_path=pem_file_path,
        remote_user=remote_user,
        machine_address=machine_address)

    print(textwrap.dedent("""
    This example illustrates how to connect to your VM with ssh.

    This is the command line you would need to connect to this instance:

        {0}

    Press RETURN to execute the command now:
    """)).format(cmd).strip("\n")
    raw_input('--> ')
    subprocess.call(cmd, shell=True)

    print "\n"
An example to show how one connects to their instance
dataset/ETHPy150Open glenjarvis/ansible_tutorial/src/example_01/access_machine.py/example_01