This project is read-only.

SshClient not firing PasswordExpired event

Sep 25, 2013 at 9:48 PM
I've set up a virtual ubuntu 32bit machine with openssh. I expire my test user's password with the command:
sudo passwd -e sftptest
However, when I make a connection, it correctly connects and disconnects. If I use putty to connect, I am prompted to change my password.

Can someone help me figure out what's going on? My connection code is below:
PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(
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))

Oct 16, 2015 at 4:01 AM
I have the same problem. DO you find a solution?