OpenSSH 6.9 breaks PieTTY

September 17, 2015

I upgraded openssh-server to 6.9p1-1 and was no longer able to connect with PieTTY (and PuTTY). According to the changelog:

- ssh(1), sshd(8): Deprecate legacy SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
  message and do not try to use it against some 3rd-party SSH
  implementations that use it (older PuTTY, WinSCP).

The fix is to move DH_GEX low enough in the list that it's not selected:

pietty kex fix