changed _check_ssh_tunnel