I ran into an odd issue when trying to SSH to a Ubiquiti Edgeswitch the other day. As soon as I tried to connect to the switch I would get
Server sent disconnect message
type 2 (protocol error):
Fortunately this has a really quick fix. Just edit the session properties, go the SSH tab, and then “Advanced SSH Settings”. Uncheck the “Compression” checkbox, click OK, and try again.