When logging into my cloud server, I receive this message:
WARNING: Your password has expired. You must change your password now and login again! Changing password for user. (current) UNIX password:
I need to automate the process of entering the current password, and entering the new password after that.
However, every time I try to run a command I get an error saying
WARNING: Your password has expired.\nPassword change required but no TTY available. (I am connecting via SSH on a Node.js app)
How can I get around this problem? Is there anyway I can run a command without getting that error so I can change the password?