Check if jail works before trying to log into it.