The first time you connect to the server, you will be asked to verify the public key of the server. The SSH process uses symmetric encryption, asymmetric encryption and hashing in order to securely connect the client to the remote server.
SSH utilizes TCP port 22 by default, although this can be changed to a non-standard port. In this article, we'll outline how to SSH to a server using the Terminal program on OS X Mac.
Mac OS features a built-in SSH client called Terminal which allows you to quickly and easily connect to a server. SSH or Secure SHell is an encrypted connection protocol which is used to connect to the command line interface of a remote machine.