Posted: 2016-06-03 22:20
Hi I'm new to WinSCP, using version 18.104.22.168 and I was able to use .Net & Com library to do basic SFTP operations such as upload, download, make directory, list directory.
I'm not sure how I can automate password change.
I was trying to use session.ExecuteCommand("passwd oldpassword newpassword newpassword"); and got an error as below.
Command 'passwd oldpassword newpassword newpassword'
failed with return code 6 and error message
passwd [-r files | -r nis | -r nisplus | -r ldap] [name]
passwd [-r files] [-egh] [name]
passwd [-r files] -sa
Can some one please explain me how I can do the password change using ExecuteCommand or terminal ssh scripts?
Location: Prague, Czechia
You can post new topics in this forum
And it's free!