Refactor out ssh auth methods