sshpass hangs when connecting to PfSense box

I am trying to SSH to my PfSense box using sshpass to specify the password file. If I just use a normal ssh root@ip cmd it connects just fine but if I specify a password or password file using sshpass (sshpass -p pass ssh root@ip) I get a hung cmd prompt. I have to then kill the process to return to a console. This started happening after I upgraded to PfSense 2.2.

I also tried adding -oStrictHostKeyChecking=no to the cmd as recommended in an article I found on the issue but that did not help.
Who is Participating?
ITNCAuthor Commented:
This was resolved by adding a new option the sshpass command string:

Article with Fix
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.