I'd like to handle the password expiration/change process of an SFTP connection. I didn't think there would be any general methods for this, but I had assumed I would at least be able to detect/parse the prompts and send text via low-level SFTP commands. Now that I look/think about SFTP I'm not sure this is possible. In fact, I don't even see how I can send low-level commands, or access the actual text response, at all in the FTPConnection (or derivative) classes. I am using EdtFTPnetPRO version 6.3.0.20.
Does anyone have any advice on this? Particularly if there is an easier method that I haven't been able to find. The more I think about it, the more I wonder if there shouldn't be methods in the API for this.
I am using the .NET libraries for production system, but wanted to show an example (via command-line) of the interaction below.
Thanks,
James Smyth
[user1@nix.domain.com]/dir1/dir2> sftp SOMEUSER@X.Y.Z.W
Connecting to X.Y.Z.W...
Password:
Your password has expired. Choose a new password.
Old Password:
New password:
Re-enter new password:
sftp> quit
[user1@nix.domain.com]/dir1/dir2>