SSH into a running container, using the host as a jump host. This requires
    the container to have a running sshd process.

    Args:
        * container: Container name or ID
        * cmd='': Command to run in the container
        * user='root': SSH username
        * password='root': SSH password

def ssh(container, cmd='', user='root', password='root'):
    '''
    SSH into a running container, using the host as a jump host. This requires
    the container to have a running sshd process.

    Args:
        * container: Container name or ID
        * cmd='': Command to run in the container
        * user='root': SSH username
        * password='root': SSH password
    '''
    ip = get_ip(container)
    ssh_cmd = 'sshpass -p \'%s\' ssh -A -t -o StrictHostKeyChecking=no \'%s\'@%s' % (password, user, ip)
    local('ssh -A -t -o StrictHostKeyChecking=no -i "%s" %s@%s %s %s' % (
        env.key_filename, env.user, env.host, ssh_cmd, cmd))