This is an old revision of the document!
Changing Account Password
Options for changing your account password differ with protocol you are using with your server.
Advertisement
SFTP protocol
Neither SSH nor SFTP protocol provide a method for changing an account password.
However with SSH protocol there are methods by which the server can enforce password change, in case the previous one expires. There are two possible methods, both are supported by WinSCP:
- Explicit password change request.
- Using keyboard-interactive authentication.
Note that password change via above methods has to be initiated by the server. You cannot request it explicitly yourself.
FTP protocol
FTP protocol does not provide a method for changing an account password either.
Though various FTP servers support proprietary commands that can be used to change the password.
Some servers, such as Titan FTP server, support SITE PSWD
command:
SITE PSWD "<old_password>" "<new_password>"
Other servers, such as WS_FTP Server, support CPWD
command:
CPWD <new_password>
Advertisement
Yet another variant is:
SITE CPWD <new_password>
You can execute any of these commands from Console window.
WebDAV protocol
WebDAV protocol does not provide a method for changing an account password.
Alternative methods
If you have a terminal access to your server, change your password in the terminal session.
If you do not have a terminal access, your server administrator (e.g. webhosting providers) will have another method for changing a password (typically via their web site).