Getting this error while accessing ssh configured on MAC OSX “ssh_exchange_identification: Connection closed by remote host” Solution: Go to System preferences – Sharing and enable remote login Option