well it should be possible, but it would be much easier if you manage to create a small test case,
One thing you could verify,:
if you add hte switch -t
to a ssh command you force a tty allocation and should thus be able to use commands like
stty -echo