I'm trying to use sshpass to login automatically, however, it seems to have problem with /dev/tty
echo password | ./sshpass ssh root@xxxx
...
debug1: read_passphrase: can't open /dev/tty: No such device or address
...
Permission denied (publickey,gssapi-with-mic,password).
Any ideas? I can login directly without sshpass, so it's a tty problem.