ssh_exchange_identification: Connection closed
I ran into this same exact issue. My system log reflected: 

/var/empty must be owned by root and not group or world-writable


Going to Disk Utility &gt; Macintosh HD &gt; Repair Disk Permissions reset the permissions of /var/empty and solved the problem for me.