It's not possible from the command line. Most SSH servers does not even allow changing the password. Are you sure yours does? Does the password changing in GUI work?
I can find a change password option in the GUI, however I am looking for a away where I can change the password using command line. Any help much appreciated.