sshサーバのログには以下のメッセージが出ていた。
<event seq="52" time="2019-05-02 20:41:20.671086 +0900" app="BvSshServer 7.21" name="W_SESSION_DISCONNECTED_ABNORMALLY" desc="Session disconnected abnormally.">
<session id="1006" service="SSH" remoteAddress="192.168.0.100:59781"/>
<parameters disconnectReason="FlowError"/>
<error type="Flow" component="SshManager/transport/kexHandler" class="Flow" code="ComponentException" description="Exception in component: Windows CNG (x64) with additions: AsymKey: CngAgree: unexpected secretData->cbStruct"/>
</event>
原因はBitvise SSH Serverの不具合で、Windowsのバージョンが1803以降だとログインできなくなるらしい。 Bitvise SSH Serverをバージョンアップすると直った。
参考: