Qualcomm interview question

How does SSH authentication work?