PasswordConnectionInfo PasswordExpired EventSSH .NET Client Library Documentation
Occurs when user's password has expired and needs to be changed.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

Examples

var connectionInfo = new PasswordConnectionInfo("host", "username", "password");
var encoding = new Renci.SshNet.Common.ASCIIEncoding();
connectionInfo.PasswordExpired += delegate(object sender, AuthenticationPasswordChangeEventArgs e)
{
    e.NewPassword = encoding.GetBytes("123456");
};

using (var client = new SshClient(connectionInfo))
{
    client.Connect();

    client.Disconnect();
}
See Also