I'd like to pipe the output of ssh to a different command. For example:
ssh myserver cat remote-file | diff local-file -
The problem is that myserver asks for a password, but I can't enter it. (For some reason, public-key authentication is not available on the server. I can't change this.) I get the "Password:" prompt, but the keys I type are echoed, and not passed to ssh. How can I make ssh get the password?
Note I'm not trying to pipe the password into ssh. I'm trying to pipe the output of ssh, and enter the password as usual.
In case it matters, I'm using bash on OS X 10.7 (Lion), and the standard Terminal. I have no aliases set up that could cause this. I've seen the same problem different (Linux) systems, so I believe it's not specific to my setup.