SshSession.disconnect

void disconnect(ushort reason, string description)

Disconnects the session.

Parameters

reasonSSH disconnect reason code (RFC 4250).
descriptionHuman-readable description sent to the peer.