Do not specify rejectUnauthorized unless -n is specified explicitly
It seems that option is not ignored for non-ssl connections and causes an error for non-ssl connections