The following series of events help protect the integrity of SSH communication. SSH Connection Sequence 1) A cryptographic handshake…