This post introduces how to fix the “ssh_exchange_identification: connection closed by remote host” issue. If you meet the issue, you can refer to this post.