The SSH client uses public key cryptography to ensure a safe connection to the SSH server.
The SSH Protocol follows a client-server model in which connection is established by SSH Client to the SSH server. This kind of connection can be used for file transfer and issuing other remote commands. This communication takes place through a secured encryption process. The Secure Shell (SSH) Protocol lets a user connect to a remotely located computer from one computer.