That is because the passwd command has no way to turn off echo w/o access to a tty. If you run "ssh -t command" the sshd on the other end will allocate a tty and thing will act as you expect. - todd