Index: openssh/kex.c =================================================================== --- openssh.orig/kex.c +++ openssh/kex.c @@ -630,6 +630,7 @@ kex_new(struct ssh *ssh, char *proposal[ } if ((r = kex_prop2buf(kex->my, proposal)) != 0) goto out; + kex->flags = KEX_INITIAL; kex->done = 0; kex_reset_dispatch(ssh); ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, &kex_input_kexinit);