PfSense 2.2 Not Accepting sshpass Command
-
I have a script I run from a linux box that sends a command to pfSense at various times. With pfSense 2.1.5 I used the command "sshpass -p 'SoMeLetTeRs' ssh sshuser@192.168.1.1" and it logged in fine. Now that I have upgraded to 2.2 the linux box just hangs after I type that command. If I type ssh sshuser@192.168.1.1 it logs in fine once I enter the password. How can I restore this functionality?
-
Some tips : http://askubuntu.com/questions/282319/how-to-use-sshpass
-
I am experiencing this exact same issue after the 2.2 update. The article in that link suggests using -oStrictHostKeyChecking=no to fix this issue but even when I specify that option the issue persists. Has anyone had any luck figuring this out?
-
wouldn't it be easier to just use public key auth?
-
Under normal circumstances i would do just that but not for this scenario. It would be a nightmare for us to manage the keys (this is part of a larger script). We really need to get sshpass working again.
-
Using -o 'KbdInteractiveDevices no' is a workaround for me on 2.2.2
"sshpass -p 'SoMeLetTeRs' ssh -o 'KbdInteractiveDevices no' sshuser@192.168.1.1"
-
Using -o 'KbdInteractiveDevices no' is a workaround for me on 2.2.2
"sshpass -p 'SoMeLetTeRs' ssh -o 'KbdInteractiveDevices no' sshuser@192.168.1.1"
Yes! This did in fact fix the issue, thank you!
-
It may be a "nightmare" to manage keys but I'd take that any day over hardcoding an ssh password in a script.
-
^ yeah is this script in clear text? Sounds like bad idea to me ;)