There are 2 methods to access the SSH, one is by password based and other is key based. The SSH key based authentication is meant provide a secure way to access a server with private and public key.
Source: LXer – How to Set Up SSH Keys on Debian