exit code bug fixed
authByAgent only if not authByPassword and not authByPublicKey