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