If you're on unix/linux, then login to your ssh server like this:
this'll prompt you for password, if you have not yet transferred your ssh keys to the server. If you're on Windows, then use putty for doing the same.ssh -l <username> <servername>
Then after logging in, do this:
this will prompt your for your current password on the server and then new passwordpasswd