When you use SSH for maintenance, both ends of the connection have a question to answer. Your client needs to know which server it reached. The server needs to know whether the account is allowed to sign in.
Linux Hardening · Lesson 6
SSH Access
Learn to distinguish SSH server identity, user authentication, and login access policy.